hitmsbkk Posted December 14, 2024 Share Posted December 14, 2024 Sorry for my bad english Can anyone help to correct correct the code below: 'pick_country' => Configuration::get('CEDEASYPARCEL_API_PICKUP_COUNTRY')?Configuration::get('CEDEASYPARCEL_API_PICKUP_COUNTRY'):Configuration::get('PS_SHOP_COUNTRY_ID')?Db::getInstance()->getValue("SELECT `iso_code` FROM `"._DB_PREFIX_."country` WHERE `id_country`='".(int)Configuration::get('PS_SHOP_COUNTRY_ID')."'",true):'MY', as it show error Symfony\Component\ErrorHandler\Error\FatalError: Compile Error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` at modules/cedeasyparcel/cedeasyparcel.php:1196 Link to comment Share on other sites More sharing options...
musicmaster Posted December 14, 2024 Share Posted December 14, 2024 I once had such an error and I solved it by adding the brackets as the error message suggests. Link to comment Share on other sites More sharing options...
ST-THEMES Posted December 19, 2024 Share Posted December 19, 2024 Hi, Try to change the code with the following code in the modules/cedeasyparcel/cedeasyparcel.php on line 1196: 'pick_country' => Configuration::get('CEDEASYPARCEL_API_PICKUP_COUNTRY')?Configuration::get('CEDEASYPARCEL_API_PICKUP_COUNTRY'):(Configuration::get('PS_SHOP_COUNTRY_ID')?Db::getInstance()->getValue("SELECT `iso_code` FROM `"._DB_PREFIX_."country` WHERE `id_country`='".(int)Configuration::get('PS_SHOP_COUNTRY_ID')."'",true):'MY'), Best regards. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now