Tips and Tricks WP eCommerce

eCommerce Solution for WordPress Blog

  • Home
  • eCommerce Plugins
  • WP eStore Documentation
  • WP Shopping Cart Doc

Simple WP Shopping Cart – How the Shipping Cost Calculation Works

The following video explains how the shipping cost calculation works in the WordPress Shopping Cart plugin.

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_button name="Test Product" price="10.00" shipping="2.00"]

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_button name="Test Product" price="10.00" shipping="0.001"]

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.

Option 3) Use PayPal’s Profile Based Shipping

You can also configure the shipping in your PayPal merchant account profile then tell the shopping cart to use your profile based shipping.

Step 1: Check the “Use PayPal Profile Based Shipping” field in the settings menu of this plugin

Step 2: Configure your PayPal profile based shipping in your PayPal account.

Note: The simple shopping cart can only do amount based profile shipping. The weight based profile shipping is only available in the WP eStore plugin.

Visit the WordPress Shopping Cart Plugin Page.

Note: We provide technical support for our premium plugins via our customer only support forum

Filed Under: Shipping Tagged With: Shipping & Tax, WP Shopping Cart

Comments

  1. Hamski says:

    Thank you Thank you Thank you for your idiot proof explanation.
    got it all working inside 3 minutes.
    thanks again

  2. Ivy says:

    @ Pixelologist, You would add the shipping in the shortcode like this “[wp_cart:Test Product:price:10.00:shipping:2.00:end]”.
    You can find instructions for this here: http://www.tipsandtricks-hq.com/ecommerce/wordpress-shopping-cart-how-the-shipping-cost-calculation-works-297

  3. Pixelologist says:

    Am I missing something? We want to be charging $3 shipping for the first item and $1 for all subsequent items. I saw your advice above and it made perfect sense to me to set the base shipping to $2 with a per item shipping charge of $1. But I don’t see a place in the plugin’s settings to specify a per item shipping charge – ONLY the base shipping.

    Where is this field that would solve all my problems? 🙂

    Thanks!

  4. Terrance says:

    I’ve been recently using Shopify as my store provider. I’ll definitely be making the switch to wordpress and this plugin. Thanks again for such a great freaking plugin!

  5. Leonie Delessio says:

    super blog! really like what you’ve done here.

  6. Ryan says:

    I think I finally solved it! after 4 days…

    Sorry for emailing, but I though i was stuck

    For anyone who wants to know… how to apply base shipping to all add to cart purchases in elegantthemes eStore theme – Not digital products…

    I changed a line in “wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php”

    FROM:
    foreach ($_SESSION[‘simpleCart’] as $item)
    {
    $total += $item[‘price’] * $item[‘quantity’];
    $item_total_shipping += $item[‘shipping’] * $item[‘quantity’];
    $total_items += $item[‘quantity’];
    }

    TO:
    foreach ($_SESSION[‘simpleCart’] as $item)
    {
    $total += $item[‘price’] * $item[‘quantity’];
    $item_total_shipping += 0.001 * $item[‘quantity’];
    $total_items += $item[‘quantity’];
    }

  7. Ivy says:

    Hi Bianca, Please see the following page: http://www.tipsandtricks-hq.com/ecommerce/simple-wp-shopping-cart-installation-usage-290. The section called “Using Variation Control Option” should explain what you are looking for.

  8. Bianca says:

    I decided to just incorporate the upsize charge to the price. Now I only need the part where the buyer selects the size. How can i add this part?
    Thanks!

  9. Bianca says:

    I need to give the buyer an option to choose the size. Depending on the size, there is an equivalent upsize charge. However, this upsize charge is not the same for all items. Other items charge $5 per upsize, others only $3.
    I did not see anything about sizes, I hope I just missed it. Please don’t tell me it’s not part of your exceptional plug-in!
    Thanks!

  10. Ivy says:

    Hi ScorpioRose, The following forum post will explain more about this issue and how to fix it:

    http://www.tipsandtricks-hq.com/forum/topic/you-do-not-have-sufficient-permissions-to-access-this-page-error

    If this does not fix the issue you are having please let me know.

  11. ScorpioRose says:

    Hi, I am very pleased with the Simple WP Shopping Cart plug-in I have added to my website, with one exception. I would like to have the option and flexibility of adding specific marketing discount coupons and coupon codes for special promotions. Is there any way to add a coupon or coupon code to be redeemed at checkout in the Simple WP Shopping Cart plug-in application?

    Appreciate Your Help!

  12. Lisa says:

    Hi Ivy,
    I followed your instructions and thanks for your help, the issue is finally resolved now 🙂 I’m looking forward to implement this cool plug-in to other website 🙂

  13. Ivy says:

    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.

  14. Ivy says:

    Hi Lisa, Can you please send me a link to your site so I can take a look at what is happening?

  15. Lisa says:

    Hi Ivy,

    The website link is http://enviocarb.com/?page_id=387

    Thanks for helping.

    Cheers!

  16. Lisa says:

    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.

  17. Ivy says:

    @Guest, Can you please post a link to your site so I can take a closer look at this and see what is happening?

  18. guest says:

    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!

  19. Ivy says:

    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.

  20. KH says:

    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!

  21. Ivy says:

    Hi Dan, Since the Simple Shopping Cart and eStore where both designed mainly for digital products they only have simple shipping options.

    Cheers,
    Ivy

  22. dan says:

    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
    .

  23. Ivy says:

    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.

  24. dan says:

    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?

  25. Ivy says:

    Hi, Can you please send a link to where the shopping cart and products are located, so I can take a look at this?

  26. Madelyn says:

    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!

  27. Ivy says:

    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

  28. Ivy says:

    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

  29. Ivy says:

    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

  30. Scott Ashby says:

    Ivy,

    You’re right! What an embarrassing mistake. Everything is working fine now. Thanks for your help.

    Scott

  31. Scott Ashby says:

    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

  32. FeltGrinder says:

    Version 2.8.2 is what I am using Ivy

  33. FeltGrinder says:

    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?

  34. Ivy says:

    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

  35. Jim says:

    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

  36. Ivy says:

    Hi Scott, Did you set the currency code and symbol in the main menu settings of the plugin?

    Cheers,
    Ivy

  37. Ivy says:

    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

  38. Scott Ashby says:

    http://www.ashbyme.com/?page_id=187

  39. Scott Ashby says:

    Thanks, Ivy, but my profile is set to CAN dollar. Any other ideas?

  40. Ivy says:

    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

  41. Sonya says:

    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.”

  42. Ivy says:

    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

  43. Scott Ashby says:

    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?

  44. admin says:

    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).

  45. Aaron says:

    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?

  46. Alison says:

    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.

  47. Ivy says:

    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

  48. Alison says:

    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…?

  49. Amanda says:

    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

  50. admin says:

    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.

  51. Amanda says:

    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

  52. Thomas says:

    Great plug in…I’m going to have to install this one!

  53. Ivy says:

    @ 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

  54. Riccardo says:

    Is it possible to set 2 different shipping costs?
    Like “For Europe” and “For Asia”?

  55. Kay says:

    I do both domestic and international shipping can I set up options. Shipping based on location/

  56. Ivy says:

    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

  57. Ric says:

    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

  58. admin says:

    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.

  59. Vincent says:

    Thanks for the quick and accurate answer^^

  60. Dawn says:

    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!

  61. admin says:

    If you don’t use an individual shipping cost for an item it will treat that as a digital product.

  62. DeBorah Beatty says:

    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

  63. Ivy says:

    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

  64. Vincent says:

    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

  65. admin says:

    This is a wordpress plugin so it only works for wordpress site.

  66. jamal says:

    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.

  67. admin says:

    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.

  68. RevTrev says:

    Is it possible to use the base shipping price as you’ve outlined above, and yet NOT charge for shipping on downloadable products?

  69. Jeremy says:

    Nevermind, found out it was on Paypal’s end! Keep on rocking with this plug-in!

  70. Jeremy says:

    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!

  71. Max Supera says:

    This is freakin awesome. thanks so much!!!

  72. ilsita says:

    I came here with exactly the same question, removed that line from the code, and it worked perfectly! Thank you!

  73. admin says:

    @Chris, that will do but you can delete the whole line including that form bit too.

  74. admin says:

    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.

  75. Chris Melton says:

    Thanks for the help. I’ve deleted this line:

    $form .= “”;

    Is this correct? your quick response is outstanding. Super client service.

    Chris

  76. Chris Melton says:

    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

  77. Chris Melton says:

    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?

  78. admin says:

    Hi Jenny, yes you can put a link to the shop page anywhere like any normal HTML link

  79. Jenny says:

    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

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Your Shopping Cart

Shopping Cart Empty
Shopping Cart is Empty
Visit The Shop

Search

Featured Documents

Stylish Product Display Options for WP eStore WP eStore Quick Setup and Usage Video Tutorial WP eStore Shortcodes and Functions Reference WordPress eStore Plugin Features WordPress eStore Plugin Demo What Our Customers Have to Say About Our Products WordPress eStore WishList (Feature Suggestions) WordPress eStore Frequently Asked Questions (FAQ) How to Show Add to Cart buttons

Featured Plugins

wordpress_estore_icon
wordpress membership plugin icon
WP Express Checkout Plugin
Lightbox Ultimate Plugin
wordpress_affiliate_plugin_icon

Copyright © 2023 | eCommerce Plugins