isotope / core

Core repository of Isotope eCommerce, an eCommerce extension for Contao Open Source CMS
https://isotopeecommerce.org
136 stars 107 forks source link

Unsupported operand types: string #2502

Closed kreadiv closed 9 months ago

kreadiv commented 10 months ago

If no prices are defined because Isotope should be used as "Product Catalog", this error message appears:

TypeError: "Unsupported operand types: string * int" at /vendor/isotope/isotope-core/system/modules/isotope/library/Isotope/Model/ProductCollectionItem.php line 342

The method getPrice() returns an empty string. Shouldn't return the method "null" if no price is set?

aschempp commented 9 months ago

Should be fixed in fda57f603b5eabcf989f07cf334d8c9269fd9387