Edit catalog/model/payment/pp_express.php
Before:
Add:
Before:
Code: Select all
$method_data = array();
Code: Select all
if($this->currency->getCode() == 'INR') {
$status = false;
}
Hi, i tried exactly but get below error on checkout page.pprmkr wrote:Edit catalog/model/payment/pp_express.php
Before:Add:Code: Select all
$method_data = array();
Code: Select all
if($this->currency->getCode() == 'INR') { $status = false; }
if ($this->config->get('pp_express_total') > $total) {
$status = false;
} elseif (!$this->config->get('pp_express_geo_zone_id')) {
$status = true;
} elseif ($query->num_rows) {
$status = true;
} elseif ($this->currency->getCode() = 'INR') {
$status = FALSE;
} else {
$status = false;
}
$method_data = array();
Fatal error: Can't use method return value in write context in /home/public_html/catalog/model/payment/pp_express.php on line 92
Where did I mention:
You cannot set any value on the function getCode() !
I did not instruct to use elseif !
Just follow my instruction and put the lines:
Before:
Code: Select all
} elseif ($this->currency->getCode() = 'INR') {
$status = FALSE;
I did not instruct to use elseif !
Just follow my instruction and put the lines:
Code: Select all
if($this->currency->getCode() == 'INR') {
$status = false;
}
Code: Select all
$method_data = array();
Hi, i tried exactly but get below error on checkout page.
if ($this->config->get('pp_express_total') > $total) {
$status = false;
} elseif (!$this->config->get('pp_express_geo_zone_id')) {
$status = true;
} elseif ($query->num_rows) {
$status = true;
} else {
$status = false;
}
if($this->currency->getCode() == 'INR') {
$status = false;
}
$method_data = array();
Fatal error: Call to undefined method Cart\Currency::getCode() in /home/sanajewe/public_html/vqmod/vqcache/vq2-catalog_model_payment_pp_express.php on line 76
if ($this->config->get('pp_express_total') > $total) {
$status = false;
} elseif (!$this->config->get('pp_express_geo_zone_id')) {
$status = true;
} elseif ($query->num_rows) {
$status = true;
} else {
$status = false;
}
if($this->currency->getCode() == 'INR') {
$status = false;
}
$method_data = array();
Fatal error: Call to undefined method Cart\Currency::getCode() in /home/sanajewe/public_html/vqmod/vqcache/vq2-catalog_model_payment_pp_express.php on line 76
Replace:
with:
Code: Select all
if($this->currency->getCode() == 'INR') {
Code: Select all
if (strtoupper($this->config->get('config_currency')) == 'INR') {
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester
Thanks buddy it's worked perfectly! but now i have installed this Extension https://www.opencart.com/index.php?rout ... load_id=56 and it's shows again.
I know this is because of XML file i uploaded for "PayPal payment Standard & Express in local currency" can you pls guide me where i have to change the code in my xml file.
The file is Attached below:
I know this is because of XML file i uploaded for "PayPal payment Standard & Express in local currency" can you pls guide me where i have to change the code in my xml file.
The file is Attached below:
Contact the extension developer to resolved this issue.
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 8 guests