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

Can't place order in magento 2.4.3-p1, getting error "add_gift_foreach is unknown type" . #36

Open
anasshl opened this issue Jun 24, 2022 · 1 comment

Comments

@anasshl
Copy link

anasshl commented Jun 24, 2022

Preconditions

  • Magento version: 2.4.3p1
  • Module version: 1.0.0

Settings / Sale Rules

  1. Create new sales rule
  2. Add gift product SKU
  3. Set Discount amount to 1
  4. Set Maximum Qty Discount is Applied To 1
  5. Set condition -Row total in cart greater then 50 -

Steps to reproduce

  1. Install extension
  2. Add product to cart
  3. Check if gift Item is added to cart and go to checkout page
  4. Click button Place Order

Expected result

  1. Order Success

Actual result

  1. Error 500
    "message":"add_gift_foreach is unknown type",
    "trace":"#0 /srv/web/staging/vendor/magento/module-sales-rule/Model/RulesApplier.php(224): Magento\SalesRule\Model\Rule\Action\Discount\CalculatorFactory->create()\n
@domeglic
Copy link
Contributor

Sorry for the delay, is the module version really 1.0.0? Because I wasn't able to reproduce it.

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

2 participants