Developer forum

Forum » Development » products that require other product

products that require other product


Reply

hi

 

We are making a webshop, where certain products require a third product.

example:

 

prod1

prod2

prod3

 

buying prod2 or prod3 should automatically add a third product, say prod100

 

A product field is used to specify wether a product require prod100 or not.

 

Is something like that possible?

How can I programatically add a product?

 

-jan


Replies

 
Reply

Why not just register prod2 and prod3 as Parts lists and add prod1 on the Parts list pane of each product?

 

Otherwise, you can make a notification that is fired when a new product is added to the basket. The current order is passed in the object array og this notification, and all you need to create a new OrderLine and add it to the OrderLines collection of the order.

 

You must be logged in to post in the forum