Jump to content


Public support for Maximum product quantity module. With this addon you can control maximum quantity of product and/or combination by groups in cart, or maximum quantity to purchase during specific time (last year, month, etc.)
Photo

Error when installing on PrestaShop 8.0.2 with PHP 8.1.2


  • Please log in to reply
No replies to this topic

#1 FreezeS

FreezeS

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 29 March 2023 - 03:23 PM

Compile Error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

 

in modules/mqc/mqc.php (line 1648)

 

'id_product_attribute' => (Tools::getValue('ipa''false') != 'false' Tools::getValue('ipa') : Tools::getValue('id_product_attribute''false') != 'false' Tools::getValue('id_product_attribute') : false),                    

 

 

I corrected like this and it worked:

 

'id_product_attribute' => (Tools::getValue('ipa', 'false') != 'false' ? Tools::getValue('ipa') : (Tools::getValue('id_product_attribute', 'false') != 'false' ? Tools::getValue('id_product_attribute') : false)),                    
 
 
                    '
 

 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users