Skip to content

Bug Report: completeOrder incorrectly prioritizes quote products over order products #39

Description

@janisverins

The completeOrder() method in Rule\RuleMailer\Model\Api\Subscriber incorrectly prioritizes quote products over order products when building subscriber data for completed orders.

Because of this Order.Products[PRODUCT].image has bad url, because $product->getImage() returns null in Helper/Data.php::getQuoteProduct().

The simple solution for now was to expose the product image to quote item via catalog_attributes.xml:

<group name="quote_item">
        <attribute name="image"/>
    </group>

Best,
Jānis

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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