Adding different shipping costs togther at the checkout
-
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.00If 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.50All 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.50What 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!
- The topic ‘Adding different shipping costs togther at the checkout’ is closed to new replies.