- Posts: 50
- Thank you received: 3
Checkout only when quantity is divideable
- stefanfrei
-
Topic Author
- Offline
Less
More
7 years 11 months ago #299675
by stefanfrei
Checkout only when quantity is divideable was created by stefanfrei
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
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.
7 years 11 months ago #299677
by nicolas
Replied by nicolas on topic Checkout only when quantity is divideable
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
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.
- stefanfrei
-
Topic Author
- Offline
Less
More
- Posts: 50
- Thank you received: 3
7 years 11 months ago #299816
by stefanfrei
Replied by stefanfrei on topic Checkout only when quantity is divideable
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.185 seconds