cancel
Showing results for 
Search instead for 
Did you mean: 

"We can't add this item..." main.CRITICAL: add_gift is unknown type

SOLVED

"We can't add this item..." main.CRITICAL: add_gift is unknown type

Hi,

 

Can sombody help me with this error in frontend: 

 

We can't add this item to your shopping cart right now.

 

in exception.log

main.CRITICAL: add_gift is unknown type {"exception":"[object] (InvalidArgumentException(code: 0): add_gift is unknown type at /home/seedsat/public_html/magento2-ub3/vendor/magento/module-sales-rule/Model/Rule/Action/Discount/CalculatorFactory.php:51)"} []

 

Magento Version is 2.3.7

1 ACCEPTED SOLUTION

Accepted Solutions

Re: "We can't add this item..." main.CRITICAL: add_gift is unknown type

I solved this by myself.

 

Problem was that I migrated cart price rules from Magento 1. In Magento 1 was was using an extension for free products.

 

So I deleted all cart price rules now I can add my products to the cart.

View solution in original post

1 REPLY 1

Re: "We can't add this item..." main.CRITICAL: add_gift is unknown type

I solved this by myself.

 

Problem was that I migrated cart price rules from Magento 1. In Magento 1 was was using an extension for free products.

 

So I deleted all cart price rules now I can add my products to the cart.