WordPress.org

Ready to get started?Download WordPress

Forums

wp-e-commerce Coupons (5 posts)

  1. marques_uk
    Member
    Posted 2 years ago #

    Hello,

    I have a website that sells books, I'd like to offer Free Delivery. I added a coupon and used discount Free Delivery for that item, after entering the code on the checkout page it seems to work fine, all the information is updated and the correct price is shown, however when I click purchase where I'm taken to PayPal the total price is shown with delivery charges included?

    Any ideas? I have tried other options such as discount price and discount percentage and it acts the same?

    Many thanks
    marques_uk

  2. Visser Labs
    Member
    Posted 2 years ago #

    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?

  3. marques_uk
    Member
    Posted 2 years ago #

    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

  4. Adam Webster
    Member
    Posted 2 years ago #

    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

  5. marques_uk
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic