In Magento, I have some products, which can be purchased only once by a customer, and this products can be purchased alone not combined with any products.
1) If the Product
X purchased by a customer
C, then when the customer
C again try to purchase the product
X , it should not allow him to purchase.
2) The Product
X, can be purchased alone only, when the customer add the Product
X to cart, then it needs to check whether already any products are in cart,
- if no, then this product can add to cart
- if yes, then this product should not add to the cart, need to show some notification and need to redirect to product page.
thanks in advance.