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
Description
When I preview a product I get the following error:
Argument 1 passed to craft\commerce\services\PaymentCurrencies::convert() must be of the type float, null given, called in /nitro/sites/site/craft/vendor/craftcms/commerce/src/helpers/Currency.php on line 82
This does not happen when I view the page directly. Only in the preview pane even with no differences between the live page and the "draft". I think it may be related to the commerceCurrency filter. This doesn't appear to happen with a product that doesn't have variants.
To Reproduce
How, and what happened?
Preview a product with variants in the CMS.
Preview won't load.
Preview throws error above.
Expected behavior
What did you expect to happen?
The preview should load just like the live page does.
Additional info
Craft version: 3.4.27
Commerce version: 3.1.11
PHP version: 7.4
Database driver & version: MySQL 8.0.20
Other Plugins & versions:
The text was updated successfully, but these errors were encountered:
Description
When I preview a product I get the following error:
This does not happen when I view the page directly. Only in the preview pane even with no differences between the live page and the "draft". I think it may be related to the commerceCurrency filter. This doesn't appear to happen with a product that doesn't have variants.
To Reproduce
How, and what happened?
Expected behavior
What did you expect to happen?
The preview should load just like the live page does.
Additional info
The text was updated successfully, but these errors were encountered: