code4business / freeproduct2

Magento2 extension that allows creating sales rules that add gift products.
64 stars 28 forks source link

ISSUE on cart page when you add any product custom option as required. #18

Closed codhepstack closed 4 years ago

codhepstack commented 4 years ago

Error on cart page

When you add a free product rule and configure the free product with the custom options as required, it throws an error Call to a member function getQty() on string in MAGENTO_DIR/app/code/C4B/FreeProduct/SalesRule/Action/GiftAction.php:100

domeglic commented 4 years ago

Products with any kind of configuration are not supported as there would be no way to configure them when they are added.