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 Jun 21, 2019 at 5:13
  • @KetanBorada I Really appreciate your answer, could you pls explain in brief?
    – zus
    Jun 21, 2019 at 5:29


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.