[Skip to main content](#vessel-content)

#   Checkout only when quantity is divideable

##

- **[stefanfrei](/forum/user/53877-stefanfrei "View stefanfrei's Profile")**
- [![stefanfrei's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/53877-stefanfrei "View stefanfrei's Profile") Topic Author
- [ Offline](/forum/user/53877-stefanfrei)

Less More

- Posts: 50
- Thank you received: 3
-
-

8 years 1 month ago [\#299675](#299675) by [stefanfrei](/forum/user/53877-stefanfrei "View stefanfrei's Profile")  *[Checkout only when quantity is divideable](/forum/27-checkout/896067-checkout-only-when-quantity-is-divideable#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: &quot;You must add x articles in your cart for completing your order.&quot;  Can anyone make this coding for us?  Thanks, Stefan")* was created by *[stefanfrei](/forum/user/53877-stefanfrei "View stefanfrei's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NjA2Ny1jaGVja291dC1vbmx5LXdoZW4tcXVhbnRpdHktaXMtZGl2aWRlYWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 1 month ago [\#299677](#299677) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout only when quantity is divideable](/forum/27-checkout/896067-checkout-only-when-quantity-is-divideable#299677 "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: &quot;You must add x articles in your cart for completing your order.&quot;  Can anyone make this coding for us?  Thanks, Stefan")*

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](https://www.hikashop.com/download/languages.html#modify)

The following user(s) said Thank You: [stefanfrei](/forum/user/53877-stefanfrei "View stefanfrei's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NjA2Ny1jaGVja291dC1vbmx5LXdoZW4tcXVhbnRpdHktaXMtZGl2aWRlYWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[stefanfrei](/forum/user/53877-stefanfrei "View stefanfrei's Profile")**
- [![stefanfrei's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/53877-stefanfrei "View stefanfrei's Profile") Topic Author
- [ Offline](/forum/user/53877-stefanfrei)

Less More

- Posts: 50
- Thank you received: 3
-
-

8 years 1 month ago [\#299816](#299816) by [stefanfrei](/forum/user/53877-stefanfrei "View stefanfrei's Profile")  Replied by *[stefanfrei](/forum/user/53877-stefanfrei "View stefanfrei's Profile")* on topic *[Checkout only when quantity is divideable](/forum/27-checkout/896067-checkout-only-when-quantity-is-divideable#299816 "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: &quot;You must add x articles in your cart for completing your order.&quot;  Can anyone make this coding for us?  Thanks, Stefan")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NjA2Ny1jaGVja291dC1vbmx5LXdoZW4tcXVhbnRpdHktaXMtZGl2aWRlYWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.077 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
