How to buy only one product CategoryWise ?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hi..everyone

    I have two category -category1 and category2 there category1 contains 4 products and category2 contains 4 products.
i want to buy only one product from category1, if i try to buy second product from category1..it gives error
message as you already bought from this category.


thank you advance.
7 years ago
This would require customization; if you are a developer, you could create a plugin that uses an Action Filter.

Or Shipping Director can enforce it, but only at the point shipping method selection during checkout; it would display a message instead of a shipping method, and prevent checkout from proceeding.

   ErrorExit     Only 1 item per category A           Items.Count(Product.Category.Id = 1) > 1          "Sorry,..."
   ErrorExit     Only 1 item per category B           Items.Count(Product.Category.Id = 2) > 1          "Sorry,..."

(adjust category Id as needed)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.