Developer forum

Forum » Development » Update order fields using CartLineAddedObserver (Cart v1)

Update order fields using CartLineAddedObserver (Cart v1)

Diogo Lino
Reply
Hello,

I have 2 custom order fields: dateDepart and dateArrival. I've created a CartLineAddedObserver to update these 2 fields on the database when the order is in "cart" mode, because they are only written on database in "order" mode (after step 2). It is to use them already on custom discounts.

When I update the database on CartLineAddedObserver the order fields are again set to empty before the step2 is loaded and I cannot find what is changing them again (some other notification?) and therefore i cannot use these fields on my custom discounts.

Is there any solution? Thanks!

Diogo

Replies

 

You must be logged in to post in the forum