You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This endpoint : ecommerce/stores/{store_id}/promo-rules
Params: enabled
Need to be boolean. This crash because craft\commerce\models\Discount->enabled return a string and Mailchimp API claims that the type should be a boolean.
Here my fix:
/src/craftCMS/vendor/ether/mailchimp-commerce/src/services/PromosService.php
This endpoint : ecommerce/stores/{store_id}/promo-rules
Params: enabled
Need to be boolean. This crash because craft\commerce\models\Discount->enabled return a string and Mailchimp API claims that the type should be a boolean.
Here my fix:
/src/craftCMS/vendor/ether/mailchimp-commerce/src/services/PromosService.php
filter_var($promo->enabled, FILTER_VALIDATE_BOOLEAN)
The text was updated successfully, but these errors were encountered: