Skip to content

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

Description

@anasshl

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

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