GX-Bug #66316
geschlossenProduct with variants throws Error 500 in frontend when quantity of the property combinations is zero
100%
Ein Problem auf der Seite Produktdetails wurde behoben, wenn die Kombinationen keine verfügbare Menge hatten.
Beschreibung
Preconditions:
- create a product with property combinations, leave the combination's amount at zero
- call this product in the frontend
result:
- error 500
log:
020-03-16 18:38:53 ERROR: Uncaught Gambio\Shop\SellingUnit\Unit\Exceptions\InsufficientQuantityException: AvailableQuantity 0 in /var/www/uw/4.0.0.0_2FA/GambioShop/SellingUnit/Unit/SellingUnit.php:219
2020-03-16 18:38:53 WARNING: count(): Parameter must be an array or an object that implements Countable
2020-03-16 18:38:52 WARNING: Use of undefined constant SESSION_CHECK_IP_ADDRESS - assumed 'SESSION_CHECK_IP_ADDRESS' (this will throw an Error in a future version of PHP)
2020-03-16 18:38:52 WARNING: Use of undefined constant SESSION_CHECK_USER_AGENT - assumed 'SESSION_CHECK_USER_AGENT' (this will throw an Error in a future version of PHP)