webdna / commerce-bulk-pricing

Other
2 stars 2 forks source link

Populate Line Item event #12

Open deanfields opened 2 years ago

deanfields commented 2 years ago

Hi I am trying to access the cart price when a product has been added to the cart by hooking into the events in a module to do with line items. Specifically the Populate Line Item event. You guys are also using this event to modify the price of the product. When I check the cart subtotal etc the price is incorrect. This is because your adjustment hasn't been applied yet and there are no other events I can use to get the correct price with the bulk pricing field having applied the correct pricing.

I have been advised by craft to contact you in order to get the price after it's been modified by your plugin.

Can you add an event that can be hooked into to access the lineItem and the cart after you have applied the adjustments? Otherwise people can't do other things with line items that might rely on this information