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
57 stars 51 forks source link

PHP Warning Undefined array key "until" #552

Closed matin73 closed 3 months ago

matin73 commented 4 months ago

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; } }