Developer forum

Forum » Development » add same product to a new orderline

add same product to a new orderline

Yung Yi Wang
Reply

I want to add certain same products to a new ordeline.

Is there an observer where I can decide if a product is added to a new orderline?

 


Replies

 
Nicolai Høeg Pedersen
Reply

Notifications.eCommerce.Cart.Line.Added is when a new line is created. If the quantity changes, it is Notifications.eCommerce.Cart.Line.Increased, and there is one for Decreased, deleted and so on.

 
Yung Yi Wang
Reply

That is not exactly what I meant.

Is there an observer before those cart.line added or increased that decides whether it goes to line added or line increased?

 
Nicolai Høeg Pedersen
Reply

No, that does not exist. Only the notifications you can find on Notifications.Ecommerce.Cart object.

 

You must be logged in to post in the forum