Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shipping discount amount is not calculated with shipping amount #248

Open
seegrand opened this issue Sep 12, 2024 · 0 comments
Open

Shipping discount amount is not calculated with shipping amount #248

seegrand opened this issue Sep 12, 2024 · 0 comments

Comments

@seegrand
Copy link

When a cart price rule is used, the coupon can include free shipping. In this case the shipping discount is not subtracted from the shipping amount and shipping costs are tracked when they are in fact free.

image

Applicable classes:

  • \Yireo\GoogleTagManager2\DataLayer\Event\Refund
  • \Yireo\GoogleTagManager2\DataLayer\Event\Purchase
  • \Yireo\GoogleTagManager2\DataLayer\Mapper\OrderDataMapper
  • \Yireo\GoogleTagManager2\DataLayer\Tag\Order\Order

To get the correct price $order->getShippingDiscountAmount() should be subtracted from $order->getShippingAmount().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant