Jump to content

Limiting the total amount of products in the cart

Recommended Posts

I am currently working on a beer selling shop, and one very specific requirement requirement is giving me issues:

The user can only checkout if the total amount of products in the cart is in a multiple of 6 (Example: If the user is buying 3 beers, it can't checkout, if the user is buying 6 beers, it can checkout, if the user is buying 7 beers it can't checkout, if it is buying 12, it can, etc..)

I assume something like that could be implemented by doing something like
           *greys out checkout button*

But I'm having trouble finding the part of the code were I can add this

I am using prestashop

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More