Magento setting up coditional sale on products -
ok need know if following possible do, lets have product called a, want other products lets x , y on sale, can buy x , or y if purchased a.
is there way 1 can achieve this?
firstly, need segregate 2 set of products i.e (type 1 : product (can purchased without dependent product) , type 2 : product x , y (needs have product in cart). segregation can best done defining attribute job. let's create attribute sell individually , set yes product , set no product x , y.
now, need listen event : checkout_cart_save_before, in observer write code control whether particular product can added cart or not.
you can refer link read more using magento events , observer.
Comments
Post a Comment