shipping price for multipack products

  • Posts: 1
  • Thank you received: 0
  • Hikashop Business
1 year 9 months ago #342096

-- HikaShop version -- : 4.5.1.
-- Joomla version -- : 3.10.9
-- PHP version -- : 7.4.29
-- Browser(s) name and version -- : divers

we are running a shop for a winery.
shipping will be done by DPD and costs €7,- for each box with 6 bottles even different sorts. Minimum amount of bottles are 6 and they can be selected separatly..
Is it possible to solve this requirement with a formula?
Or are there any other possibilities?
best regards Mike

Please Log in or Create an account to join the conversation.

  • Posts: 81378
  • Thank you received: 13037
  • MODERATOR
1 year 9 months ago #342097

Hi,

In the "formula" setting of your shipping method, you could write:

floor({quantity}/6)*7
So that the shipping fee would be 7€ from 6 to 11 bottles and then 14€ from 12 to 17, etc.
And also enter 6 in the "minimum quantity" setting of your shipping method.

However, if what you want is to only allow purchases of 6, 12, 18, etc, then the formula setting won't help you.
Instead you need to create several manual shipping methods:
- one with a minimum quantity of 6 and a maximum quantity of 6 and a price of 7
- one with a minimum quantity of 12 and a maximum quantity of 12 and a price of 14
- one with a minimum quantity of 18 and a maximum quantity of 18 and a price of 21
...etc...
That way, the system will automatically filter the shipping methods on the checkout and only display the ones matching the current stock in the cart.
And when the quantity of the products in the cart is 5 or 11, no shipping method will be available and the user will get presented with an error message which you can potentially customize with a translation override to tell him to add a total quantity of bottles which is a multiple of 6.

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum