I have developed a custom module. After installing this module, a script should be added in every pages. But after installing from opencart admin panel, script doesn't load in all pages. Just loads in 1/2 pages. Can any one give me any suggestion please?
Thanks in advance.
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
https://www.revechat.com/integrations/opencart/
After some research I found that, for loading banner in every page, the script should be loaded inside the header/footer section of the page. But in our opencart 1.5 & 2 module, the script is loading inside the body. That's why causing the problem. Probably this is the code problem.
In my code it is mentioned to add it inside the header/footer. But unfortunately it is not adding in header/footer.
$data['header'] = $this->load->controller('common/header');
$data['column_left'] = $this->load->controller('common/column_left');
$data['footer'] = $this->load->controller('common/footer');
If we add script inside the header/footer manually then the banner is visible to every page.
So are you sorted now? If not, I would suggest writing a VQMOD to insert the code in the header or footer.
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
Users browsing this forum: No registered users and 62 guests