gandeming
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] Cart Currency and Paypal Currency MismatchProblem went away once updated the plugin. Thanks!
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] Currency WrongHi! My cart shows AUD but when I check out with Paypal, it shows USD. Please help.
Hi, I know Paypal only supports up to 2 decimal places. However, according to them (https://www.paypal.com/cgi-bin/webscr?cmd=p/pdn/howto_checkout-outside#methodone), Paypal offers to 2 options of collecting cart amount.
First is collecting the aggregate. Which means the total of the cart will be taken as the figure that appears in the Paypal Order Summary.
Second is to collect individual items. This is the current setting. I may be wrong but I saw this in the plugin editor under paypal.php:
$item_total = $item[‘price’] * $item[‘quantity’];
Could a change in code such that item total from the shopping cart be taken instead of using the formula: Price*Quantity?
You’ve been such a great help thus far. I would really appreciate if you could continue to help. Thank you soooooooooooooo much.
That would be fantastic. Thank you so much.
I think I know what the problem is.
The price of my product are written in 3 decimal places as a single unit of the product costs 0.036. The number displayed on the Shopping Cart is the rounded number = 0.04. However, in doing the calculation for the total, it takes the original cost (0.036) and multiplies it by the quantity (0.036 x 250 = 9). Therefore total in shopping cart is RM 9.
However, Paypal uses it’s own calculation. Instead of obtaining the total of RM 9 from the Shopping Cart, I think it obtains the value of a single unit of the product (rounded off, so 0.04) and multiplies it by the quantity (250). Which results in it costing RM 10.
Due to the difference in calculation, we get different values.
Question: Is it possible to edit the plugin so that Paypal acquires the total displayed on the Shopping Cart rather then letting Paypal calculate on its own?
I updated my account to a business account.
Okay. Done that but it still is empty. What do you suspect to be the problem mbrsolution?
Done that earlier. Same.
I have enabled it. I have also created a sandbox account on Paypal. But when I click on the file ‘ipn_handle_debug.log’, it opens up a blank screen. RM is the symbol for MYR (Malaysian Ringgit) which is listed in the link you provided. Even when I changed the currency to USD, the mismatch is still present.
Thank you!
Thank you for the speedy reply.
These are the codes I use:
[wp_cart_button name=”6 Days Proofread” price=”0.036″]
[show_wp_shopping_cart]Here are my settings:
https://saltandletter.com/wp-content/uploads/2014/10/Error.pngThanks again