Good Evening,
I am trying to create a new module position called content_top which will allow me to show different banners, html etc in the header below the breadcrumb trail.
I have followed the instructions here but can not get it to show the content
https://stackoverflow.com/questions/481 ... pencart-3#
The only thing I have changed throughout the code is content_new to content_header
Any experts willing to have a stab at what the problem might be?
Thanks
I am trying to create a new module position called content_top which will allow me to show different banners, html etc in the header below the breadcrumb trail.
I have followed the instructions here but can not get it to show the content
https://stackoverflow.com/questions/481 ... pencart-3#
The only thing I have changed throughout the code is content_new to content_header
Any experts willing to have a stab at what the problem might be?
Thanks
Because this 'tutorial' is written in a good quality, what happens if you do not change content_new to content_header?
And do exactly what is written?
Or maybe you have an error on your own code?
And do exactly what is written?
Or maybe you have an error on your own code?
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Hi, thank you for your reply.
I have reverted the code back to the original but it still does not work. The admin side works where I can select what I want to display but nothing displays on the shop side.
I have reverted the code back to the original but it still does not work. The admin side works where I can select what I want to display but nothing displays on the shop side.
I have managed to get it working now on the home page position (although not sure what I did)
Ideally I would like to be able to use it on any/all pages, any ideas?
Thanks
Ideally I would like to be able to use it on any/all pages, any ideas?
Thanks
ok so I added
$data['content_new'] = $this->load->controller('common/content_new');
to both category.php and product.php in catalog/controller/product/
I am learning slowly but what else am I missing???
Thanks
$data['content_new'] = $this->load->controller('common/content_new');
to both category.php and product.php in catalog/controller/product/
I am learning slowly but what else am I missing???
Thanks
How many different pages do you want this extra module position on ??
If it is multiple pages then you may be better putting the codes in header.php and header.twig instead of home.php and home.twig, then you just need to add a module to the new position on whatever page you want via design/layout.
If this is what you want then i can make up a quick zip file for you, if you cant manage it yourself.
If it is multiple pages then you may be better putting the codes in header.php and header.twig instead of home.php and home.twig, then you just need to add a module to the new position on whatever page you want via design/layout.
If this is what you want then i can make up a quick zip file for you, if you cant manage it yourself.
Ideally I would like to have the choice of which pages to add it to but if its easier just to add it to the header then I am ok with that.
If you could put a zip together for me that would be great as I have looked at this code forever and still not sure what I am not doing correctly.
Thanks for your help
If you could put a zip together for me that would be great as I have looked at this code forever and still not sure what I am not doing correctly.
Thanks for your help
cyclops12 wrote: ↑Tue Feb 12, 2019 1:39 amHow many different pages do you want this extra module position on ??
If it is multiple pages then you may be better putting the codes in header.php and header.twig instead of home.php and home.twig, then you just need to add a module to the new position on whatever page you want via design/layout.
If this is what you want then i can make up a quick zip file for you, if you cant manage it yourself.
If you download the latest version of vqmod
Here is a link for vqmod
Attached is a zip which contains the 2 new files needed (content_header php which you need to put in catalog/controller/common+ twig file which goes in catalog/view/theme/default/template/common)and the vqmod file
Let me know how you get on with it
Here is a link for vqmod
Attached is a zip which contains the 2 new files needed (content_header php which you need to put in catalog/controller/common+ twig file which goes in catalog/view/theme/default/template/common)and the vqmod file
Let me know how you get on with it
Along with vqmod i also use the vqmod manager to help keep things easy to manage.
I have attached it but up to you if you want to use it or not
I have attached it but up to you if you want to use it or not
Hi,
Sorry for not responding sooner, I have been down with man flu. The new module positions work great just how I wanted it
I have tried to use the vqmod manager but I get an error
I downloaded from github and uploaded the file and reinstalled but the error still occurs.Required file "vqmod.php" is missing! Please install the latest OpenCart-compatible version of VQMod from https://github.com/vqmod/vqmod/releases ... 1-opencart and try again.
Who is online
Users browsing this forum: Bing [Bot], labeshops and 22 guests