• Resolved oldcreakyknees

    (@oldcreakyknees)


    Hi there,

    I’m hoping to use WooCommerce for a site which sells items with designs on them (t-shirts, prints on canvases, mugs etc).

    I’ve set up a development site to check the functionality and am having a problem with shipping costs.

    I’ve spent a while looking though the support forum but can’t seem to find an answer, so I assume I’m doing something wrong as no-one else seems to have a problem doing this!

    Here’s the situation: Say a t-shirt costs £20 and has a shipping cost of £3; a print costs £30 and has a shipping cost of £6; a mug costs £7 and has a shipping cost of £2.50.

    If I add just a t-shirt to the basket and go to the checkout, it works fine:
    ie
    t-shirt = £20
    t-shirt shipping cost = £3
    ORDER TOTAL = £23.00

    If I add just a mug to the basket and go to the checkout, it still works:
    ie
    mug = £7
    mug shipping cost = £2.50
    ORDER TOTAL = £9.50

    All good so far (:
    Here’s the problem: If more than one type of item (eg a t-shirt plus a mug) is put in the basket, the checkout gives an option to select shipping for a mug -OR- shipping for a t-shirt so only one item’s shipping cost will be applied to the total order.

    ie the checkout is:
    ITEM : t-shirt = £20
    ITEM : mug = £7
    SHIPPING: SELECT: t-shirt shipping cost = £3 -OR- mug shipping cost = £2.50
    ORDER TOTAL = £30.00 -OR- £29.50
    (depending on whether t-shirt shipping cost or mug shipping cost is selected)

    I really need it to add the shipping cost of both types of item together ie add the shipping cost of the mug to the shipping cost of the t-shirt

    ie
    ITEM : t-shirt = £20
    ITEM : mug = £7
    SHIPPING: t-shirt shipping cost = £3
    SHIPPING: mug shipping cost = £2.50
    ORDER TOTAL = £32.50

    What am I doing wrong?

    I also need to have the shipping cost multiplied by the number of the same type of items in the basket before it’s added to the shipping costs of any other items at the checkout.

    Eg: If I’m buying 2 t-shirts and 3 mugs I’d like it then to calculate:

    ITEM : Qty 2 of t-shirt : 2 * £20 = £40
    ITEM : Qty 3 of mug : 3 * £7 = £21
    SHIPPING: t-shirt shipping cost : 2 of £3 = £6
    SHIPPING: mug shipping cost : 3 of £2.50 = £7.50
    ORDER TOTAL = £74.50

    (I think this is done in ‘WooCommerce’ –> ‘Settings’ –> ‘Shipping’ –> ‘Shipping zones’ –> ‘Zone name’ –> ‘Shipping methods’:’Title’ –> ‘Flat rate Settings’:’Shipping class costs’ –> <a-flat-rate-shippingclass-cost>

    … by setting the ‘Shipping Class Cost’ to, say, 2.5 * [qty] for mugs or 3 * [qty] for t-shirts (ie with a space either side of the ‘*’).

    Presumably, if I get all of this working I can then set Shipping Zones by country and change the Shipping class costs in each of these as needed?

    Thanks in advance for any help!

Viewing 15 replies - 1 through 15 (of 26 total)
  • Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    You are most of the way there already. I think you just have one setting off. The Calculation setting in the Flat Rate method is where you would want to change stuff. It sounds like you have that set to “per Order” instead of “per Class”.

    So you would set the base cost as 0, then set up your mugs as 2.5 * [qty] and then your other stuff following that guideline.

    https://docs.woocommerce.com/document/flat-rate-shipping/

    Hopefully that helps! Have a great one!

    Thread Starter oldcreakyknees

    (@oldcreakyknees)

    Hi,

    Thanks for your reply.

    I’d followed the instructions in that very helpful documentation page when setting this up and had set the ‘Calculation type’ to ‘per class’ but get a radio button selection for “Shipping” in the basket and at the checkout.

    Here are all of my settings:

    – – – – – – – – – – – – – – –
    ‘Shipping zones’ settings:

    Zone name : 1st class (UK) P&P
    Zone regions : United Kingdom
    Shipping methods:
    Print P&P – 1st class post, Enabled, Flat rate
    T-shirt P&P – 1st class post, Enabled, Flat rate
    Mug P&P – 1st class post, Enabled, Flat rate

    – – – – – – – – – – – – – – –
    ‘Flat Rate settings’:

    Method title : Print P&P – 1st class post
    Tax status : Shouldn’t matter?
    Cost : BLANK

    Shipping class costs
    “Mugs” shipping class cost : N/A
    “Prints” shipping class cost : 6 * [qty]
    “T-shirts” shipping class cost : N/A
    No shipping class cost : N/A
    Calculation type : Per class

    Method title : T-shirt P&P – 1st class post
    Tax status : Shouldn’t matter?
    Cost : BLANK

    Shipping class costs
    “Mugs” shipping class cost : N/A
    “Prints” shipping class cost : N/A
    “T-shirts” shipping class cost : 3 * [qty]
    No shipping class cost : N/A
    Calculation type : Per class

    Method title : Mug P&P – 1st class post
    Tax status : Shouldn’t matter?
    Cost : BLANK

    Shipping class costs
    “Mugs” shipping class cost : 2.5 * [qty]
    “Prints” shipping class cost : N/A
    “T-shirts” shipping class cost : N/A
    No shipping class cost : N/A
    Calculation type : Per class

    – – – – – – – – – – – – – – –
    In the “Edit Product” section of the dashboard
    In the ‘Product data’ section
    In the ‘Shipping’ section:
    ‘Weight’ and ‘dimensions’ : left blank
    In the shipping class section:
    ‘Prints’ : for products that are Prints,
    ‘T-shirts’ : for products that are t-shirts and
    ‘Mugs’ : for products that are mugs

    So, it all seems to be set up correctly but I still can’t see what I’m doing that’s causing the radio buttons to show up in the basket and the checkout. What needs to be changed so that shipping is calculated correctly (ie add up the shipping cost of each item in the basket) but with no radio buttons?

    Any further help is much appreciated.

    Plugin Support RK a11n

    (@riaanknoetze)

    Admittedly I’m having a hard time reading through the text what you’re seeing at the moment, what you’re expecting to show up, and how you have things configured.

    Would you mind sharing screenshots of how things are configured as well as what you’re expecting to show up? If required, note that you can use a screenshot service like snag.gy to take/host screenshots ??

    Thanks!

    Thread Starter oldcreakyknees

    (@oldcreakyknees)

    Hi there,

    Thanks for ‘unresolving’ this!

    I’ve added screenshots of the various settings now.

    WooCommerce → Settings :
    Shipping Zones settings : https://snag.gy/h9Yv5k.jpg
    Shipping Zones → Zone name settings : https://snag.gy/eEQM5P.jpg
    Shipping Zones → Zone name settings → Flat Rate Settings (print) : https://snag.gy/EFNuai.jpg
    Shipping Zones → Zone name settings → Flat Rate Settings (t-shirt) : https://snag.gy/AycduG.jpg
    Shipping Zones → Zone name settings → Flat Rate Settings (mug) : https://snag.gy/9n7RDX.jpg

    Shipping options → Shipping options : https://snag.gy/AOlVyo.jpg

    Shipping classes → Shipping classes settings : https://snag.gy/hH3mp1.jpg

    Product settings:
    Products → All Products → print
    General settings : https://snag.gy/kUtqRK.jpg
    Shipping settings : https://snag.gy/iRu5vN.jpg

    Products → All Products → t-shirt
    General settings : https://snag.gy/FljQp3.jpg
    Shipping settings : https://snag.gy/xbpadR.jpg

    Basket:
    Basket with multiple products showing radio buttons and, therefore, incorrect total price (ie calculated using just one shipping method) : https://snag.gy/2XNgBj.jpg

    Checkout:
    Checkout with multiple products showing radio buttons and, therefore, incorrect total price (ie calculated using just one shipping method) :
    https://snag.gy/zbWNyx.jpg

    Hopefully that’s all set up correctly.

    Please would you let me know what I have to do so :
    1. the radio buttons in the basket and checkout aren’t shown (ie shipping methods for each product are applied and not a choice)
    2. shipping is calculated correctly (ie add up the shipping cost of each item in the basket)?

    Thanks again.

    Thread Starter oldcreakyknees

    (@oldcreakyknees)

    Hi there,

    I submitted the screen shots you asked for but received a message about it being ‘held for moderation’ and it’s not showing up here.

    I was wondering if you’d had had a chance to look at it. Please let me know if you’d like me to send it again?

    Thanks.

    Thread Starter oldcreakyknees

    (@oldcreakyknees)

    Hi there,

    (Thanks for ‘unresolving’ this BTW)

    I received this suggestion: https://woocommerce.com/my-account/tickets/?id=1952497
    … suggesting I post each link to a screen shot separately.

    Here we go!

    Thread Starter oldcreakyknees

    (@oldcreakyknees)

    WooCommerce → Settings :
    Shipping Zones settings : https://snag.gy/h9Yv5k.jpg

    Thread Starter oldcreakyknees

    (@oldcreakyknees)

    Shipping Zones → Zone name settings : https://snag.gy/eEQM5P.jpg

    Thread Starter oldcreakyknees

    (@oldcreakyknees)

    Shipping Zones → Zone name settings → Flat Rate Settings (print) : https://snag.gy/EFNuai.jpg

    Thread Starter oldcreakyknees

    (@oldcreakyknees)

    Shipping Zones → Zone name settings → Flat Rate Settings (t-shirt) : https://snag.gy/AycduG.jpg

    Thread Starter oldcreakyknees

    (@oldcreakyknees)

    Shipping Zones → Zone name settings → Flat Rate Settings (mug) : https://snag.gy/9n7RDX.jpg

    Thread Starter oldcreakyknees

    (@oldcreakyknees)

    Shipping options → Shipping options : https://snag.gy/AOlVyo.jpg

    Thread Starter oldcreakyknees

    (@oldcreakyknees)

    Shipping classes → Shipping classes settings : https://snag.gy/hH3mp1.jpg

    Thread Starter oldcreakyknees

    (@oldcreakyknees)

    Okay, the last one I sent prompted a message: “This post has been held for moderation by our automated system and will be manually reviewed by a moderator.”

    I’ll try again in a minute ….

    Thread Starter oldcreakyknees

    (@oldcreakyknees)

    Products → All Products → print
    General settings : https://snag.gy/kUtqRK.jpg

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Adding different shipping costs togther at the checkout’ is closed to new replies.