When the widget is inserted via the Admin area to the CMS page, the rule_id will be saved as a string, for example: "18"
After that, the module during the request to Tweekwise will use the setting: "Limit max number of products for group codes" as there is a check if !is_int("18"), however these setting(limit) suppose to be used for group codes, but not to the templates.
Environment
PHP Version: (8.1)
Magento Version: 2.4.5-p7
Tweakwise Version: 5.4.5
Magento Deploy Mode: production|development
Steps to reproduce
Add the Tweawise widget to the home page
Configure the widget that will show more than 5 products for instance
Set the value to Admin > Stores > Configuration > Catalog > Tweakwise > Recommendations to setting "Limit max number of products for group codes" to 3
When the widget is inserted via the Admin area to the CMS page, the rule_id will be saved as a string, for example: "18"![image](https://github.com/EmicoEcommerce/Magento2Tweakwise/assets/5140641/1669fbcf-6df3-4c8d-9339-85ea17a80c4a)
After that, the module during the request to Tweekwise will use the setting: "Limit max number of products for group codes" as there is a check if !is_int("18"), however these setting(limit) suppose to be used for group codes, but not to the templates.
Environment
Steps to reproduce
Actual result
The number of products will be max 3
Expected result
The number of products won't be limited by 3
Possible fix:
OR:
![image](https://github.com/EmicoEcommerce/Magento2Tweakwise/assets/5140641/e99ea31c-e1a2-46d8-867b-abb0a8a2fc23)