Simple WP Shopping Cart – How the Shipping Cost Calculation Works
Categories: Shipping
Shipping Cost Calculation in the WordPress Shopping Cart
Simple Shipping Options
Option 1. Flat Shipping Charge Per Item
If you just want to use flat shipping cost for each item then just put ‘0′ in the ‘Base Shipping Cost’ option and specify the individual shipping cost in the trigger text (shortcode) for each product and you are done. For example, the following shortcode will place a button for a product that charges $2.00 for shipping.
[wp_cart:Test Product:price:10.00:shipping:2.00:end]
Option 2. Flat/Fixed Shipping Charge Per Checkout (no matter how many items in the cart)
If you just want to use a fixed shipping cost for the cart no matter how many items are in the cart then you can achieve this by specifying this fixed amount in the base shipping cost. Remember, the base shipping cost is only added to the cart if a product in the cart has individual shipping value specified (this way if a customer buys digital product he doesn’t get charged any shipping). Use an individual shipping value of “0.001″ for your physical items which won’t increase the shipping cost but will trigger the base shipping cost to be added as a fixed shipping rate. For example, use the following shortcode:
[wp_cart:Test Product:price:10.00:shipping:0.001:end]
Giving Shipping Discounts
What if you want to be a little more intelligent with the shipping cost calculation and want to use ‘Base Shipping Cost’ in conjunction with the individual product shipping cost to offer your customers a better shipping price? You can do that too.
The base shipping cost is added to the total of the individual products shipping cost. So for example if you had two products that costs $50 each and you want to charge $10 shipping for each item then someone buying both the products whould have to pay $100(product cost) + $20(shipping cost) = $120(total). That is not a very realistic shipping price since you are shipping both the products to the same address in one package so it will probably cost you $15 instead of $20.
How do you handle this situation?
You use a base shipping cost of $5 and indidividual product shipping cost of $5.
Now when someone buys both the products the shipping cost will be calculated as following:
$5(shipping for product1) + $5(shipping for product2) = $10(total individual products shipping cost)
Total shipping cost = $10(total individual products shipping cost) + $5(base shipping cost) = $15!
When someone buys one product the shipping cost will be calculated as following:
$5(shipping for product1) = $5(total individual products shipping cost)
Total shipping cost = $5(total individual products shipping cost) + $5(base shipping cost) = $10! (this is the shipping you wanted to charge for one product)
So, hopefully you can see that using the base shipping cost in conjunction with the individual product shipping cost you can be very dynamic in determining the total shipping cost for a purchase.
Visit the WordPress Shopping Cart Plugin Page.






August 29th, 2009 at 7:26 pm
I am using your brilliant e-commerce store and I have one problem. I have added the shopping cart and visit the store as a widget to the sidebar. This is the only way they can get to the Product Page.
1} is there any way I can have an image link within the static first page of the site saying Vist the Store and can I make Visit the Store larger so people can see it in the sidebar?
Otherwise it works great, thanks
August 30th, 2009 at 4:32 am
Hi Jenny, yes you can put a link to the shop page anywhere like any normal HTML link
September 1st, 2009 at 11:42 pm
Hi,
I’m using your plugin and really like it – except for one problem – “shipping charges”.
I use paypal’s flat rate charges – ie $.01 – $50.00 = $9.95 shipping charge
$50.01 – $150.00 = $12.95 shipping charges – these charges should be added once the customer proceeds to paypay processing.
I don’t know how to make this happen with this plugin and right now I don’t have anything in the shipping field and no shipping charges are being added by Paypal to orders.
Can you help?
September 2nd, 2009 at 5:10 am
Is it possible to disable the shipping option? If so, please tell me how to do it.
I would like to use the shipping calculator on the paypal website once the customer clicks “proceed to checkout”.
Thanks
Chris
September 2nd, 2009 at 8:40 am
Hi Chris, Yeah you need to modify the code so it doesn’t send shipping info to PayPal in order to use PayPal’s profile based shipping. Open the “wp_shopping_cart.php” file and search for the following word:
“shipping_1″
Delete the whole line once you find it. That should do it.
September 2nd, 2009 at 2:38 pm
Thanks for the help. I’ve deleted this line:
$form .= “”;
Is this correct? your quick response is outstanding. Super client service.
Chris
September 2nd, 2009 at 9:19 pm
@Chris, that will do but you can delete the whole line including that form bit too.
September 9th, 2009 at 8:12 pm
I came here with exactly the same question, removed that line from the code, and it worked perfectly! Thank you!
October 9th, 2009 at 6:28 am
This is freakin awesome. thanks so much!!!
October 12th, 2009 at 4:09 pm
I really dig this plug in
A problem I am encountering is it is sometimes charging double shipping. I have a flat rate of “0″ because we are charging shipping per item (which is $4.95 per item) but my client just sent me a Paypal receipt and it charged someone double shipping. Any advice on this would be most appreciated!
October 12th, 2009 at 4:47 pm
Nevermind, found out it was on Paypal’s end! Keep on rocking with this plug-in!
December 1st, 2009 at 9:53 pm
Is it possible to use the base shipping price as you’ve outlined above, and yet NOT charge for shipping on downloadable products?
December 1st, 2009 at 10:17 pm
yep, downloadable products won’t have a individual shipping attached to it so the base price won’t be added to the cart. Base price is only added to the cart if one of the items in the shopping cart has an individual shipping price (meaning it’s a physical product). If you want to charge flat rate with your physical price then simply use 0.0001 as the individual shipping price of the physical items. This way the base price will simply get added to the cart but won’t really increase the shipping price.
January 10th, 2010 at 4:15 pm
hello thanks for providing a great plugin i am using wordpress 2.8 it works there i want to know how i use this plugin in seperate page that is php page.
January 11th, 2010 at 7:09 am
This is a wordpress plugin so it only works for wordpress site.
January 14th, 2010 at 12:06 pm
Hello and thank you for such a great product.
Is it possible to include options for shipping costs ?
For example International Shipping : 10$ , FedEx shipping : 20$ …
Do you have any idea about how to do that ?
Thanks again
January 14th, 2010 at 11:37 pm
Vincent, We do not have a complex shipping option for any of our shopping cart plugins. Paypal has some shipping options that may be able to help you. Please see the following post: https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_html_ProfileAndTools#id08A9EF00IQY
Ivy
January 17th, 2010 at 9:00 pm
So, reading what’s above in the comments, how does the shopping cart tell if it’s a download or a physical product? Sorry, but I’m new at this
January 18th, 2010 at 6:41 am
If you don’t use an individual shipping cost for an item it will treat that as a digital product.
January 19th, 2010 at 8:30 pm
Thanks for the quick and accurate answer^^
January 20th, 2010 at 5:22 am
Hi!
I am using this plug-in on one of my websites and it works great except that I already have a shipping calculation set up in my PayPal profile for another website.
My question is can I use this plug-in (each item has different shipping costs) so that it doesn’t want to pull the shipping calculation that is set up in my PayPal profile.
Is there a way that can be done?
Thanks!
January 20th, 2010 at 6:32 am
By default the shopping cart do not use the shipping options specified in your PayPal profile so you shouldn’t have any issue around that.
January 21st, 2010 at 4:36 pm
Hi,
Is it possible to set the shop to only charge one single shipping price, rather than one for each product? This is what is happening when someone buys something. I only sell stickers so there is no need to charge more shipping if two or three things are bought at the same time etc.
Thanks in advance,
Ric
January 22nd, 2010 at 4:41 am
Hi Ric, Yes you can do this. The following post (option 1) should explain this more:
http://www.tipsandtricks-hq.com/ecommerce/how-the-shipping-cost-calculation-works-in-wordpress-estore-50
Even though this is for the eStore it can be used for the Simple shopping cart also.
Ivy
January 22nd, 2010 at 7:40 am
I do both domestic and international shipping can I set up options. Shipping based on location/
January 22nd, 2010 at 3:56 pm
Is it possible to set 2 different shipping costs?
Like “For Europe” and “For Asia”?
January 23rd, 2010 at 12:55 am
@ Kay, Both of our shopping cart plugins have only simple shipping options. These carts where designed more for digital products. The following post explains the shipping options that are available. Even thought this post is for the WP eStore the shipping is the same for the simple shopping cart.
http://www.tipsandtricks-hq.com/ecommerce/how-the-shipping-cost-calculation-works-in-wordpress-estore-50
@Riccardo It is not possible to set 2 different shipping costs. Please see the link above for the shipping options that are offered.
Ivy
February 19th, 2010 at 7:32 pm
Great plug in…I’m going to have to install this one!