Post by anetabialon » Wed Apr 28, 2021 9:14 pm

Hello, I installed facebook extension and now I get an error on the main page
Notice: Undefined variable: product_info in /home/xxxx/public_html/catalog/model/extension/module/facebook_business.php on line 544Notice: Undefined variable: product_info in
home/xxxx/public_html/catalog/model/extension/module/facebook_business.php on line 547Notice: Undefined variable: product_info in

line 544:
if ((float)$product_info['special']) {

line 547"
$value += $this->currency->format($this->tax->calculate($product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency'], '', false);
}
$value += $this->currency->format($this->tax->calculate($product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency'], '', false);
Can anyone help me?

Newbie

Posts

Joined
Mon Mar 15, 2021 12:54 pm

Post by OSWorX » Wed Apr 28, 2021 9:23 pm

anetabialon wrote:
Wed Apr 28, 2021 9:14 pm
Hello, I installed facebook extension ..
Which one?
anetabialon wrote:
Wed Apr 28, 2021 9:14 pm
.. and now I get an error on the main page
Notice: Undefined variable: product_info in /home/xxxx/public_html/catalog/model/extension/module/facebook_business.php on line 544Notice: Undefined variable: product_info in
home/xxxx/public_html/catalog/model/extension/module/facebook_business.php on line 547Notice: Undefined variable: product_info in

line 544:
if ((float)$product_info['special']) {

line 547"
$value += $this->currency->format($this->tax->calculate($product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency'], '', false);
}
$value += $this->currency->format($this->tax->calculate($product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax')), $this->session->data['currency'], '', false);
Seems to be a lazy coded extension.
$product_info could be also $result, but you have to check this controller by yourself if I am right (because I do not know the rest of the code).

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: No registered users and 70 guests