Post by haseebuddin » Mon Oct 08, 2018 5:24 pm

How can I limit the maximum of two different products of a specific category at a time in OpenCart 2.3.0.2?

I want to limit fashion categories where customers cannot buy more than two different items at the same time.

For example : Cart has

Category 1>First product 1item in cart Category 1>First product 2nd item in cart Prevent third item into cart if it belongs to category 1

Category 1>First product 1item in cart Category 1>2nd product 1 item in cart

Prevent third item into cart if it belongs to category 1

Newbie

Posts

Joined
Thu Mar 22, 2018 5:34 pm

Post by kestas » Tue Oct 09, 2018 3:47 pm

haseebuddin wrote:
Mon Oct 08, 2018 5:24 pm
How can I limit the maximum of two different products of a specific category at a time in OpenCart 2.3.0.2?

You need custom module to achieve your needs. Please check your PM.

Cheers

Custom OpenCart modules and solutions. Just PM me... Extensions you can find here and here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by Johnathan » Tue Oct 09, 2018 10:02 pm

Restrict Checkout can do this. You can disable the checkout when more than 2 items from that category are in the cart, and display a warning message, so the customer knows why they can't check out. They can then remove whatever item(s) they want, and can proceed through checkout. You'd set it up like this:

------------------------------------------------------------------------------
RESTRICTION #1
Name: Disable checkout when 2+ items from Category A
Message: You can only purchase up to 2 items from Category A
Rule: Category is Category A
Rule: Quantity of cart = 3-9999
------------------------------------------------------------------------------

Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any further questions.

Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 8 guests