Checkout only when quantity is divideable

  • Posts: 50
  • Thank you received: 3
6 years 4 weeks ago #299675

Hi,

we need a function that checks the total quantity (or weight) and only let the customers to checkout when the quantity (or weight) is
6, 12, 18, 24, ...

There should be a message which says for example:
"You must add x articles in your cart for completing your order."

Can anyone make this coding for us?

Thanks,
Stefan

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
6 years 4 weeks ago #299677

Hi,

No coding is required. You can create several manual shipping methods and in each one you enter a min and a max quantity (6, 12, 18, 24, ...). During the checkout, the shipping methods will be filtered out to only leave the shipping method corresponding to the curent quantity of all the products in the cart. And if there is no shipping method that match because the number is not a multiple of 6, it will display an error message and you can change that error message with a translation override:
www.hikashop.com/download/languages.html#modify

The following user(s) said Thank You: stefanfrei

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

  • Posts: 50
  • Thank you received: 3
6 years 3 weeks ago #299816

OK. We will make it with the Override of the error message.

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

Time to create page: 0.048 seconds
Powered by Kunena Forum