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.01″ 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.01: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!
April 4th, 2010 at 5:18 pm
Hello,
I think this plug in is great, ive just got one problem. I want to charge £5 shipping as standard so i have followed all the instructions to set this up (put £5 in base rate, added 0.001 in the html of individual product) then when someone adds 1 item to their cart or 2,3,4 etc it said £5 for shipping, which is correct but then when you go through to paypal to pay the £5 comes off and only the product price appears no shipping added.
What do i need to do?
http://www.blinkinpink.com/blog/products/makeup-brush-sets
Thank you
April 5th, 2010 at 1:29 am
Hi Amanda, You seem to have done everything right.. please use “0.01″ as the shipping of the individual product instead of “0.001″. Removing that one extra “0″ should fix the issue… let me know how you go.
April 5th, 2010 at 11:36 am
Hi
Thanks for the reply that seemed to just add the 0.01 so it would say £5.01 of one item £5.02 for two items ect… i have now changed it to 0.00 and that seems to work, so all good now.
With this shopping cart is there any way of having a minimum order amount?
Thank you
April 19th, 2010 at 7:31 pm
Hi, I have the same problem as Amanda.
Like Amanda, I want a flat, per-order shipping charge of $10.00 and I used the 0.01 in each item’s individual shipping cost. But that makes the shipping charge on the cart appear as $10.01 for an order with one item or $10.02 for an order with two items, etc.
I just want a flat rate of $10.00, no pennies added on (I think it looks unprofessional).
Amanda said that changing the individual shipping to 0.00 worked for her, so I tried that, but now it doesn’t trigger the base shipping cost at all.
Like Amanda, I tried to fiddle it by putting 0.001 for the individual shipping, so that the shipping cost would always appear as the flat $10.00, and it appeared OK on cart *while on the site* BUT when checking out via PayPal, the shipping cost was not applied at all.
I wonder why changing the individual shipping to 0.00 worked for Amanda, but not for me…?
April 20th, 2010 at 12:50 am
Hi Alison, You will need to use .001. Can you please send me a link to your site so I can take a look at this issue? Also have you verified that you do not have Paypal profile shipping turned on in your Paypal settings?
Cheers,
Ivy
April 22nd, 2010 at 6:38 pm
Hi Ivy, you can just delete the previous post from me – I have switched to base+individual-cost shipping, and it’s working as expected.
April 24th, 2010 at 5:33 pm
Hi,
What if you’re selling digital products where products are downloaded but you may have the option to have it delivered. Is there a way to give customers this option without having to send them an additional email asking for shipping cost?
April 25th, 2010 at 1:14 am
You could use a variation option with added price for the delivered option but the simple shopping cart doesn’t have the variation with price increase option (only eStore has that at the moment).
May 1st, 2010 at 6:22 pm
I have my currency set to CAN in the plug-in settings, but when it gets sent to Paypal, it shows USD. What am I missing?
May 2nd, 2010 at 12:52 am
Hi Scott, You will need to make sure you have specified the CAN currency in your PayPal profile also. This should fix the problem.
Please let me know how you go.
Cheers,
Ivy
May 3rd, 2010 at 8:34 pm
I keep getting this error for all my items “The link you have used to enter the PayPal system contains an incorrectly formatted item amount.”
May 4th, 2010 at 12:58 am
Hi Sonya, I believe you may be using a special character (e.g. “,” or currency symbol) in the price field instead of a “.” in your price. Please make sure to read the help text under this field as it explains how to enter the price as PayPal will not accept special characters in this field.
“The link you have used to enter the PayPal system contains an incorrectly formatted item amount.”
This indicates that your currency is formatted incorrectly for PayPal’s system. For many currencies PayPal requires that the decimal be a dot or period.
If this does not fix the issue can you please send me a link to your products page.
Cheers,
Ivy
May 19th, 2010 at 7:08 pm
Thanks, Ivy, but my profile is set to CAN dollar. Any other ideas?
May 20th, 2010 at 1:10 am
Hi Scott, Can you please send me a link to where your products are so I can have a quick look at the issue?
Cheers,
Ivy
May 20th, 2010 at 2:16 am
http://www.ashbyme.com/?page_id=187
May 21st, 2010 at 9:26 am
Hi Scott, Did you set the currency code and symbol in the main menu settings of the plugin?
Cheers,
Ivy
May 21st, 2010 at 8:21 pm
Hi, I need to have shipping calculated by the product and where it is being shipped. I also need to add packaging cost. Can you tell me how to do this?
Is it possible?
I do not have my store live yet, because I need this issue solved first.
Thanks,
Jim
May 22nd, 2010 at 3:52 am
Please see option 2 (PayPal Profile Based Shipping) here: http://www.tipsandtricks-hq.com/ecommerce/how-the-shipping-cost-calculation-works-in-wordpress-estore-50
this is for the eStore but we have add this feature in the Simple Shopping Cart also.
Cheers,
Ivy
May 22nd, 2010 at 11:58 pm
Ivy, Thank you for the response, but that doesn’t seem to work for me, there are no options like that in the simple cart that I can see, does this not involve me changing code? I deleted the section it said to above with Chris Melton and it didn’t work, when you get to paypal it still doesn’t add the shipping like I have programmed. Can you be of any more help please?
May 23rd, 2010 at 1:42 am
Version 2.8.2 is what I am using Ivy
May 25th, 2010 at 12:14 pm
Ivy,
If by the main menu you’re referring to the “Simple Paypal Shopping Cart Settings v 2.8.1″, then yes, I did.
Scott
May 26th, 2010 at 1:40 am
Hi Scott, It looks like you are using the wrong currency code for Canada it should be “CAD” not “CAN”. You can find a list of all the currency codes for PayPal here: https://www.paypal.com/cgi-bin/webscr?cmd=p/sell/mc/mc_wa-outside
Cheers,
Ivy
May 26th, 2010 at 2:03 am
Hi FeltGrinder, We have changed the shipping for the Simple shopping cart so you should not have to change the code now. In version 2.8.2 there should be the following option “Use PayPal Profile Based Shipping” This should be about the 9th option down on the list. If you check this box then it should work. If not please let me know and I will trouble shoot this a little more.
Cheers,
Ivy
May 26th, 2010 at 2:24 am
Ivy,
You’re right! What an embarrassing mistake. Everything is working fine now. Thanks for your help.
Scott
May 26th, 2010 at 4:17 am
Hi Scott, We all do it, I even thought it should be CAN until I went and looked it up. =) I am just glad it is all working fine now.
If you need anything else please let me know.
Cheers,
Ivy
June 6th, 2010 at 9:04 am
Hi there,
I am having the worst time trying to figure out the cart and shipping area of my website. When the check out button is clicked, it leads to nothing and I’m getting this:
“Error 404 – Page not found!
The page you trying to reach does not exist, or has been moved. Please use the menus or the search box to find what you are looking for”.
What am I not doing or doing wrong? Any help would be greatly appreciated, and thanks!
June 7th, 2010 at 3:02 am
Hi, Can you please send a link to where the shopping cart and products are located, so I can take a look at this?
June 26th, 2010 at 12:55 am
Hi, I’m interested in the plug-in but for one problem. My client wants to charge a fixed fee per product for 1 item, but then an additional fixed fee per additional item. So, for example, if you buy 1 teddy bear it will cost £3 shipping, but if you buy 2 teddy bears it will only cost an additional £1 (so £4 shipping for two teddies), and 3 teddies would cost £4 shipping. Is this possible with your plugin?
June 26th, 2010 at 2:42 am
Hi Dan, You can set the base shipping as $2.00 this will add $2.00 to the cart no matter how many items are there. Then you would need to set a per product shipping cost of $1.00 this will add $1.00 for every item that has this shipping to the cart.
June 26th, 2010 at 8:27 am
Hi Ivy, unfortunately that won’t help. If it was just one item that was sold in the shop that would be fine, but the client sells 100s of items, and he wants to configure each item differently – some items only cost £0.50p to send 1, while others will cost £1 or £5.
He runs an ebay shop and ebay allows him to set a different shipping fee for each and every item for sending 1 item, and another different shipping fee additional units He needs this functionality to keep shipping fees as low as possible and stay competitive.
Best regards,
Dan
.
June 27th, 2010 at 12:48 am
Hi Dan, Since the Simple Shopping Cart and eStore where both designed mainly for digital products they only have simple shipping options.
Cheers,
Ivy
July 1st, 2010 at 4:07 am
Hi, this plugin is awesome. One minor question: is there some way, via shortcode or other method, to exempt particular items from the base shipping cost?
As described in the “giving shipping discounts” section above, I’ve set a base shipping cost in combination with a smaller per item shipping cost, which is working great. However, what I’m doing is taking preorders for an item that will be released late next month, and I want to give locals the option of prepaying online and picking up their merchandise in person when it arrives.
Ideally, I’d like to include an “add to cart” button specifically for local pickup orders, which wouldn’t automatically add the shipping charge. However, I’d still like to use the base shipping fee + individual shipping fee method for all other orders. Is this doable?
Thanks in advance!
July 1st, 2010 at 4:21 am
Hi, The base shipping cost will only be added to the cart when a product has a individual shipping cost also.
The best way to do this will be to make a new product for “locals only” (you can copy the product you already have) just take the “individual shipping cost” out.
You can then make a add to cart button for this product and it will not have shipping.
Remember if the customer adds a product with a base shipping cost to the cart the shipping will then be charges along with the specified individual shipping cost for the other products.
Let me know if this does not make sense.
August 6th, 2010 at 6:59 pm
the plug in installation is super easy, thanks! however, the shopping cart does not show the price (it comes up as $0 no matter how many items i add to the cart) and doesn’t update the total (again, it shows $0). when i go to the pay pal page, however, the price shows up fine.
this is the code i used: [wp_cart:My Product:price:10:end]
thanks!
August 7th, 2010 at 12:38 am
@Guest, Can you please post a link to your site so I can take a closer look at this and see what is happening?
August 20th, 2010 at 2:53 pm
Hi, I have added the great plug-ins to my website, I love the simplicity of it and it is a very good plug-ins. However I have this problem whereby the shopping cart page does not allow me to update the quantity even after I change it, I can see that there is an instructions for me to hit enter to update the changes, but it did not reflect the changes and instead just refresh the page. Can you please let me know what I can do to rectify this error?
Thanks a lot.
August 21st, 2010 at 3:51 am
Hi Lisa, Can you please send me a link to your site so I can take a look at what is happening?
August 21st, 2010 at 5:18 am
Hi Ivy,
The website link is http://enviocarb.com/?page_id=387
Thanks for helping.
Cheers!
August 22nd, 2010 at 2:40 am
Hi Lisa, I had a look at your site, this looks like a PHP session issue. You will need to contact your hosting provider to fix this issue. They will need to check that the PHP session is turned on and configured properly. This should only take them a few minutes to do.
Let us know how this goes.
August 22nd, 2010 at 4:04 pm
Hi Ivy,
I’m looking forward to implement this cool plug-in to other website
I followed your instructions and thanks for your help, the issue is finally resolved now