Skip to content

Filtering order to send to api #98

@M4nch4k

Description

@M4nch4k

Hello,

This is not an issue, but I'm trying to sent only a part of the order to trustpilot.

I have made an around method on the observer OrderSaveObserver on the execute method.

My code log into this around method, so I filter in that method to call the trustpilot observer method only if the condition is respected.

But it looks like all the customer receive a trustpilot email. But I can't see why they are still receiving it, and there is no way to test it, only production exists...

Do you know if there is another way to send the orders to trustpilot. Because maybe trustpilot retrieves my orders by another way so my override is useless.

Any advice is welcome.

Regards
Antoine Legrand.

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