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.
Current Behavior
PHP Warning Undefined array key "until"
Expected behavior/output
No PHP Warning
Environment
TYPO3 version(s): 12.4.17
cart version: 9.0
Is your TYPO3 installation set up with Composer (Composer Mode): yes composer
Possible Solution
error occurs in Core: in ...extcode/cart/Classes/Domain/Model/Cart/Service.php line 228 because in PHP 8 Array keys must be defined:
$freeUntil = $this->config['free']['until']; possible solution:
if(isset($this->config['free']['until'])) { $freeUntil = $this->config['free']['until']; if (isset($freeUntil) && $this->cart->getGross() > (float)$freeUntil) { return false; } }
Bug Report
Current Behavior PHP Warning Undefined array key "until"
Expected behavior/output No PHP Warning
Environment
Possible Solution error occurs in Core: in ...extcode/cart/Classes/Domain/Model/Cart/Service.php line 228 because in PHP 8 Array keys must be defined: $freeUntil = $this->config['free']['until']; possible solution:
if(isset($this->config['free']['until'])) { $freeUntil = $this->config['free']['until']; if (isset($freeUntil) && $this->cart->getGross() > (float)$freeUntil) { return false; } }