Tips and Tricks HQ Support Portal › Forums › Simple PayPal Shopping Cart › Simple Shopping Cart Tweaks › Free Shipping for Quantity > 1
Tagged: conditional coupons, free shipping, shipping, shipping costs, tweak
- This topic has 10 replies, 3 voices, and was last updated 13 years ago by solixta.
December 10, 2009 at 5:44 pm #542
I would like to make shipping FREE for all orders with a quantity greater than 1. Shipping is currently set at $5.99 for the base shipping cost.
I want people to ONLY get charged shipping when they are ordering just 1 (everything greater than 1 gets free shipping).
I don’t know much about programming, but I’d imagine that this can’t bee too complex.
Please help. Thank you.December 11, 2009 at 2:30 am #16638
The simple shopping cart doesn’t have conditional shipping coupons option like the WP eStore but you said it isn’t hard to add this option in. Basically all you have to do is add a conditional “if” statement to check the total item quantity in the cart and remove the shipping if it is more than 1. I can tell you what to do if you can do the coding.December 11, 2009 at 7:41 pm #16639
@amin007, thank you. That would be great. Please let me know what I need to do.December 12, 2009 at 7:47 am #16640
In the “wp_shopping_cart.php” file search for the following line:
$item_total_shipping += $item['shipping'] * $item['quantity'];
This is where the shipping is getting calculated… you can add a condition here saying if the quantity is more that 2 then set shipping to 0.December 13, 2009 at 9:36 pm #16641
It seems to have worked out great.
I just replaced $item_total_shipping += $item * $item; with
if ($item > 1)
$item_total_shipping += 0;
$item_total_shipping += $item * $item;
Now whenever someone buys > 1 product, their shipping is free.
**I also had to make the base shipping 0.00 and use the individual buy buttons to add the shipping fee.
Thank you for your help.May 17, 2010 at 12:03 pm #16642
I am offering free shipping on ALL orders and using:
With UP TO 5 items (less than $200) no shipping is added which is great but with 5 items $50 shipping is added. I have no clue where it is coming from and I do not recall I set it up that way in Paypal.
If anybody can help it will be great because it is driving me nuts!
HenrikMay 17, 2010 at 12:45 pm #16643
Just want to add that I just tested with other products and it looks like it is when the total os more than $200.00 if that helps..
HenrikMay 17, 2010 at 2:50 pm #16644
Is the shipping being added after going to PayPal site or is it in the shopping cart?
Please post a link to your site where the shopping cart is.May 17, 2010 at 3:28 pm #16645
http://solixta.com/zero-point-wand/ try to order 5 items, it is showing on the PP page prior to login which I guess means its a PP setting problem?
Thanks for your help, most appreciated!
HenrikMay 18, 2010 at 2:14 am #16646
Yep, it means you have it setup in your PayPal profile (see the paypal profile based shipping).
If the shopping cart on your site do not show it then the shopping cart is not doing it.May 18, 2010 at 7:00 am #16647
- You must be logged in to reply to this topic.