Answer the question
In order to leave comments, you need to log in
Opencart 3 Trying to access array offset on value of type bool in?
opencart v 3.0.3.3
php v 7.4
on the checkout page, next to the payment methods (payment_method) I get the error
Trying to access array offset on value of type bool in /home/.../public_html/catalog/model/extension/payment/ cod.php on line 6
line 6
in the file is
$query = $this->db->query("SELECT * FROM "
. DB_PREFIX . "zone_to_geo_zone WHERE geo_zone_id = '"
. (int)$this->config->get('payment_cod_geo_zone_id') . "'
AND country_id = '" . (int)$address['country_id'] . "'
AND (zone_id = '" . (int)$address['zone_id'] . "' OR zone_id = '0')");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question