WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Bakery Shop => Topic started by: ChochkoBG on May 09, 2014, 01:30:16 AM

Title: Full with bugs
Post by: ChochkoBG on May 09, 2014, 01:30:16 AM
Hello guys, this module is nice, but i just installed it on new version of Website Baker.

The first problem was with the install.php file, i have to edit the constant "free_shipping - 999999999" to "100".

After fixing the problem with "No creation of the Database tables", the module start working. I see the BackEnd menu, I can add items and everything.

But when i click Add to card i receive a lot of Errors.

This is when I click on the Item in the shop:

Code: [Select]
"Notice: Undefined variable: link_length in \modules\bakery\view_item.php on line 138

Notice: Undefined variable: link_length in \modules\bakery\view_item.php on line 139

Notice: Undefined variable: use_table in \modules\bakery\view_item.php on line 235"

This is when I add the item for the card:

Code: [Select]
"Notice: Undefined variable: cart_thumb_max_size in \modules\bakery\view_cart.php on line 77

Notice: Undefined variable: cart_thumb_max_size in \modules\bakery\view_cart.php on line 78"

This is when i click Submit Order:

Code: [Select]
"Notice: Undefined index: TXT_COUNTRY_NAME in \modules\bakery\view_form.php on line 209"
This is when i click Select Payment Method:

Code: [Select]
"Notice: Undefined variable: add_chars in \modules\bakery\save_form.php on line 67

Notice: Undefined variable: add_chars in \modules\bakery\save_form.php on line 74

Notice: Undefined variable: add_chars in \modules\bakery\save_form.php on line 81

Notice: Undefined variable: add_chars in \modules\bakery\save_form.php on line 98

Notice: Undefined variable: add_chars in \modules\bakery\save_form.php on line 105"

And this is the View Summary, for example I'm using Pay on Delivery:

Code: [Select]
"Notice: Undefined index: TXT_COUNTRY_CODE in \modules\bakery\view_summary.php on line 220

Warning: array_keys() expects parameter 1 to be array, null given in \modules\bakery\view_summary.php on line 220

Notice: Undefined index: TXT_COUNTRY_NAME in \modules\bakery\view_summary.php on line 221"
Title: Re: Full with bugs
Post by: jacobi22 on May 09, 2014, 11:03:23 AM
it looks like the config-file is not loaded, please try this -> http://www.WebsiteBaker.org/forum/index.php/topic,27150.msg187299.html#msg187299

Title: Re: Full with bugs
Post by: ChochkoBG on May 09, 2014, 12:31:52 PM
First, thank you for the reply :)

I made the configurations that you told me, and half of the problems gone.

Now when i choose item from my shop and when i click Submit Order i receive the following error:

Code: [Select]
"Notice: Undefined index: TXT_COUNTRY_NAME in \modules\bakery\view_form.php on line 209"
After filling the form with the details, when i click Select Payment Method i see the page normal, but when i choose "I will pay cash on delivery" i receive the following errors:

Code: [Select]
"Notice: Undefined index: TXT_COUNTRY_CODE in \modules\bakery\view_summary.php on line 220

Warning: array_keys() expects parameter 1 to be array, null given in \modules\bakery\view_summary.php on line 220

Notice: Undefined index: TXT_COUNTRY_NAME in \modules\bakery\view_summary.php on line 221"

After submitting the Item, the Successful Page is OK, but i don't receive any E-mail.

Thank you! :)
Title: Re: Full with bugs
Post by: jacobi22 on May 09, 2014, 02:11:42 PM
TXT_COUNTRY_NAME is a Placeholder for a country, maybe there is no setting for the shop language (error in view_form//line 209), the errors in the view_summary.php are the result of the error in view_form

at first, take a look into the bakery folder and ther to languages/countrys and languages/state. is there a languages file in your selected shop-language? open this file - there is a list with all countrys with these chema

Code: [Select]
$MOD_BAKERY['TXT_COUNTRY_CODE'][1] = 'AL'; $MOD_BAKERY['TXT_COUNTRY_NAME'][1] = 'Albania';
$MOD_BAKERY['TXT_COUNTRY_CODE'][] = 'DZ'; $MOD_BAKERY['TXT_COUNTRY_NAME'][] = 'Algeria';
(only the first line has the [1], all other lines have only a [])

go to the bakery main setting to the point "shop state" or "shop country", select another country, save it, go back to this point and check, thats your selected country is saved by the system. If yes,  select now you favorite (or home)  state/country again and save it

now try it again to buy a item
Title: Re: Full with bugs
Post by: ChochkoBG on May 09, 2014, 04:09:17 PM
Thank you very much again!

Now everything is solved and it's working.

But i still have the problem with the E-mail. When i complete the order i don't receive confirmation E-mail.
My Bakery Shop is using the same E-mail Address like the Web-site.
I changed the E-mail address into the Bakery Shop, but without success.

I'm using SMTP Settings.

Thanks!!!
Title: Re: Full with bugs
Post by: jacobi22 on May 09, 2014, 04:19:29 PM
complete your order with a paypal payment or other methods?
Title: Re: Full with bugs
Post by: ChochkoBG on May 09, 2014, 04:21:52 PM
Payment method is "Pay on delivery".

Thanks.
Title: Re: Full with bugs
Post by: jacobi22 on May 09, 2014, 04:31:32 PM
do you use the module "form"?
is it possible to make a test with this module?

do you found any problems in the file from the language folder or was it a "save settings"-problem?? maybe you can try another mailadress in bakery (for a test)

i'm not sure, but i think, bakery use every time the php-mail (and not smtp).
i change this in older bakery 1.6 to the wb-methode, but it was not the same problem
Title: Re: Full with bugs
Post by: ChochkoBG on May 09, 2014, 04:49:11 PM
Yes, I'm using form method also.

I receive the message, but the Sender (the person who is sending the request/question or e.t.c) is not receiving the E-mail.

For example i have Contact form. When a customer is writing a message i receive the message, but the Customer is not receiving the message that "He/She" send it. The sender is not receiving a copy of his own message in his E-mail box.

I receive the E-mail from the Customer into my E-mail Client and i see the "Reply-to:user@user.com", but the message is not Replying to the customer.

I think this is a bug or configuration in the Website Baker System.

Any solutions ?

Thanks!!!
Title: Re: Full with bugs
Post by: jacobi22 on May 09, 2014, 05:16:54 PM
Yes, I'm using form method also.

I receive the message, but the Sender (the person who is sending the request/question or e.t.c) is not receiving the E-mail.

For example i have Contact form. When a customer is writing a message i receive the message, but the Customer is not receiving the message that "He/She" send it. The sender is not receiving a copy of his own message in his E-mail box.

this is correct for a wb 2.8.3
in german laws it is (if you see it strong) not allowed to send mails from your account to a unregistered user. the user/visitor has confirmed this mail first. some people has nothing to do and search the web for that, send a letter of warning and you have to pay or your hoster stop your domain because sending of spam mails
WebsiteBaker has to build the code without the risk of these letters of warning, thats why the core doesnt send mails to unregistered users
the visitor see only his message after sending on the desktop and a print-button (if you dont have a success page after sending)

a solution is the module mpform or mini-form, these are not core-modules and its your own risk

but all this has nothing to do with bakery!
bakery use a separat mail sending. when a customer buy a item, he and the shop admin must receive a mail from the shop

Title: Re: Full with bugs
Post by: ChochkoBG on May 09, 2014, 05:52:56 PM
Exactly, I'm using Mini-Form module for my Contact page.
The problem is still here. I receive the message in my E-mail, but the customer (the person) who is sending the Contact Message is not receiving a copy of the message.

Anyway, I'm trying the modules with already registered person and the problem is still here.

Any solutions ?

Thanks!