Hi marques_uk, I think there’s an issue regarding discounts not being passed onto PayPal with PayPal Payments Standard; I’ve got this happening for Checkout discounts. Are you using 3.8.6?
Hi Visser Labs, Yes I’m using 3.8.6. I forgot to mention in my last post that it was previously working, so it must be one of the updates? Is this the same for you? I take it there isn’t a solution for this yet then? Are the wp-e-commerce team aware of the problem?
I will look into this further, and if I have any joy I’ll post back, could you do the same if you find a solution?
Many thanks
marques_uk
Hey I was having the same problem. For me it was only doing this when not using taxes. The solution that I found was to open the paypal-standard.merchant.php located in the wspc-merchants folder of the plugin go to line 263 where it reads:
if (!$aggregate) {
foreach ($this->cart_items as $cart_row) {
$paypal_vars += array(
"item_name_$i" => $cart_row['name'],
"amount_$i" => $this->convert($cart_row['price']),
"tax_$i" => ($add_tax) ? $this->convert($cart_row['tax']) : 0,
"quantity_$i" => $cart_row['quantity'],
"item_number_$i" => $cart_row['product_id'],
// additional shipping for the the (first item / total of the items)
"shipping_$i" => $this->convert($cart_row['shipping']/ $cart_row['quantity'] ),
// additional shipping beyond the first item
"shipping2_$i" => $this->convert($cart_row['shipping']/ $cart_row['quantity'] ),
"handling_$i" => '',
);
++$i;
}
I changed change tax_$i to just tax and it seems to be working.
Hopefully this helps.
Adam Webster
Hi Adam,
Thanks for your post, however this isn’t a problem for me as I include the tax in the price at the moment.
Since it was working before the update, I’m guessing it’s something to do with the way the wp-ecommerce plugin passes the information on to PayPal. If I can’t find a solution, I might have do go back a version, however I’m worried that doing this might involve other issues.
Has anyone else experienced these problems, and has a simple solution?
Thanks again
marques_uk