SyliusTierpricePlugin icon indicating copy to clipboard operation
SyliusTierpricePlugin copied to clipboard

Original price is not set

Open gomcodoctor opened this issue 2 years ago • 3 comments

Order price recalculator do not set original price on order item

gomcodoctor avatar Aug 07 '22 18:08 gomcodoctor

Hey thanks for using this plugin. That is correct the OrderPriceCalculator does not change the original price of the product. It only changes the unit price of the product which then will get picked up by the other order processors and the item total will be adjusted.

mamazu avatar Aug 14 '22 17:08 mamazu

Only other order processor setting original price on order items is sylius's core order processor which this plugin is decorating due to which original price are never set

gomcodoctor avatar Aug 15 '22 02:08 gomcodoctor

Ah I get where you are coming from, we are decorating the service but not using the base implementation anywhere. Yeah, would you be able to set up a test case where this is a problem?

mamazu avatar Aug 16 '22 00:08 mamazu