Skip to content

OrderItem / Order: problem with Fluent #748

@wernerkrauss

Description

@wernerkrauss

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions