1

I have one restricted product, here how to do selected single product should be purchased alone? No other products are eligible to add add-to-cart if this product available in the add-to-cart, same if other products available in add-to-cart this product not eligible to add add-to-cart.

Workout-> https://gist.github.com/ZusZus/d68943de1e0b0def488bddcdf4ada4c9 not working.

  • Do it by beforeAddProduct() plugin method – Ketan Borada Jun 21 at 5:13
  • @KetanBorada I Really appreciate your answer, could you pls explain in brief? – zus Jun 21 at 5:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.