Title: wp-e-commerce Coupons
Last modified: August 20, 2016

---

# wp-e-commerce Coupons

 *  [marques_uk](https://wordpress.org/support/users/marques_uk/)
 * (@marques_uk)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/wp-e-commerce-coupons/)
 * 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

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Michael Visser](https://wordpress.org/support/users/visser/)
 * (@visser)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/wp-e-commerce-coupons/#post-2240541)
 * 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?
 *  Thread Starter [marques_uk](https://wordpress.org/support/users/marques_uk/)
 * (@marques_uk)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/wp-e-commerce-coupons/#post-2240548)
 * 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
 *  [Adam Webster](https://wordpress.org/support/users/adamwebster/)
 * (@adamwebster)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/wp-e-commerce-coupons/#post-2240551)
 * 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
 *  Thread Starter [marques_uk](https://wordpress.org/support/users/marques_uk/)
 * (@marques_uk)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/wp-e-commerce-coupons/#post-2240553)
 * 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

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘wp-e-commerce Coupons’ is closed to new replies.

## Tags

 * [free shipping](https://wordpress.org/support/topic-tag/free-shipping/)
 * [shipping](https://wordpress.org/support/topic-tag/shipping/)

 * 4 replies
 * 3 participants
 * Last reply from: [marques_uk](https://wordpress.org/support/users/marques_uk/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/wp-e-commerce-coupons/#post-2240553)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
