Cart is a small but powerful extension which "solely" adds a shopping cart to your TYPO3 installation. The extension allows you to create coupons, products with or without variants, special prices.
Add special price in a product, and configure it to 0. For example frontend users belonging to a specific group can have this price.
Now, when viewing this product in frontend as a frontend user in this group product price is shown as 0, and you save 100%. But after it is added to the cart, price goes back to original price, because in Product model getBestPrice evaluates 0.0 as falsy.
Expected behavior/output
Accept special price value of 0, when ordering a product
Environment
TYPO3 version(s): 12.4.19
cart version: 9.0
Is your TYPO3 installation set up with Composer (Composer Mode): yes
OS: Linux
Possible Solution
Changing product model method getPrice to accept 0.0 price as true.
Bug Report
Current Behavior
Add special price in a product, and configure it to 0. For example frontend users belonging to a specific group can have this price.
Now, when viewing this product in frontend as a frontend user in this group product price is shown as 0, and you save 100%. But after it is added to the cart, price goes back to original price, because in Product model getBestPrice evaluates 0.0 as falsy.
Expected behavior/output Accept special price value of 0, when ordering a product
Environment
Possible Solution Changing product model method getPrice to accept 0.0 price as true.