extcode / cart

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.
GNU General Public License v2.0
56 stars 50 forks source link

Cart throws PHP Warning: Undefined array key "specials" #546

Open terminal8-af opened 1 week ago

terminal8-af commented 1 week ago

Bug Report

Current Behavior Opening a page with the cart plugin leads to the following exception:

PHP Warning: Undefined array key "specials" in /typo3conf/ext/cart/Classes/Service/AbstractConfigurationFromTypoScriptService.php line 51

Expected behavior/output The cart plugin should be loaded without throwing a PHP Warning.

Environment

Possible Solution Change $configuration = $this->configurations[$configurationType]; in the AbstractConfigurationFromTypoScriptService.php file on line 51 to $configuration = $this->configurations[$configurationType] ?? null;

Additional context The TYPO3 debug preset is enabled.

johfeu commented 1 week ago

this should be fixe in #537 already