Bakery 1.7 : 2 Issues - Please help

tschiemer


freeSbee

#4
Hi tschiemer

Quote from: tschiemer on December 22, 2013, 12:48:53 AM
1.  The link you have used to enter the PayPal system contains an incorrectly formatted item amount.

[...] This issue is though, once the BUY button is clicked and the information is sent to the Paypal payment page I get the error: The link you have used to enter the PayPal system contains an incorrectly formatted item amount. [...]

This is caused by a bug in the Bakery PayPal payment method add-on. You can fix it easily:

Go to the file /payment_methods/paypal/post_data.php at about line 76 and replace
'amount'        => $order_total,
by
'amount'        => $_SESSION['bakery']['order_total'],

Additionally the file view_summary.php at about line 788 has to be modified. Replace
// Format output for display
$f_sales_tax   = number_format($sales_tax,   2, $setting_dec_point, $setting_thousands_sep);
$f_order_total = number_format($order_total, 2, $setting_dec_point, $setting_thousands_sep);

by
// Format output for display
$f_sales_tax   = number_format($sales_tax,   2, $setting_dec_point, $setting_thousands_sep);
$f_order_total = number_format($order_total, 2, $setting_dec_point, $setting_thousands_sep);
// Put rounded order total into the session var for later use with payment gateways
$_SESSION['bakery']['order_total'] = round($order_total, 2);


Regards Christoph

tschiemer

Thanks... that fixed#2.

Anyone got any idea on #1?

jacobi22

i've only a answer to the 2. question
go in the backend to Admin Tools, there to Frontend Output Filter and set the Option Filter Email addresses in text: to OFF

tschiemer

I just finished this new site for a client that is selling guitars and wants to get this running before Christmas.  I have used Bakery in the past and never had any issues until now.  This new version has 2 issues that I can't seem to solve:

1.  The link you have used to enter the PayPal system contains an incorrectly formatted item amount.

In the General Settings I have the Payment Settings: Taxes set to Shop State at 8.1% (see attached).  The Store works properly and when the user address is Nevada, the tax gets added to the total and the total amount under the BUY button at the end is correct.  This issue is though, once the BUY button is clicked and the information is sent to the Paypal payment page I get the error: The link you have used to enter the PayPal system contains an incorrectly formatted item amount.  If I take out the taxes per state and just use NONE, everything works perfectly.  Can someone tell me why this is happening?  I also attached a screen shot of the payment page to show the totals before clicking to buy.

2.  The second error is not stopping the payment, but show incorrectly on the page.  On the same payment page before going to Paypal, the email address of the user shows as :  tom(at)media3lv(dot)com  How can I make it show as :  tom@media3lv.com ?

If anyone can help me out with this quickly it would be GREATLY appreciated.  I am a huge Website Baker and Bakery fan and I have never had this issue before. 

Here is a link to the hidden store right now if you want to see it in action: 
http://www.lvguitargear.com/pages/store.php