When an Order is finished, the OrderItem tries to get the exact version of the product to show in the order summary (e.g. on /account/order/).
Unfortunately with fluent installed, this only works if the Product was saved in the current locale. Otherwise Fluent augments the SQl in a way that it doesn't find the Product and therefor the link to the product or a product image is not shown after checkout.
While this is definitely a fluent bug, does anything speak against adding an extension point in OrderItems's Product() method to work around this problem until the fluent bug is finally solved? Working with Injecctors is pretty painful, as OrderItem has many used Subclasses (e.g. GiftVoucherOrderItem...)
Related issues:
tractorcow-farm/silverstripe-fluent#583
silverstripe/silverstripe-versioned#252
When an Order is finished, the OrderItem tries to get the exact version of the product to show in the order summary (e.g. on /account/order/).
Unfortunately with fluent installed, this only works if the Product was saved in the current locale. Otherwise Fluent augments the SQl in a way that it doesn't find the Product and therefor the link to the product or a product image is not shown after checkout.
While this is definitely a fluent bug, does anything speak against adding an extension point in OrderItems's
Product()method to work around this problem until the fluent bug is finally solved? Working with Injecctors is pretty painful, as OrderItem has many used Subclasses (e.g. GiftVoucherOrderItem...)Related issues:
tractorcow-farm/silverstripe-fluent#583
silverstripe/silverstripe-versioned#252