Page 1 of 1
No longer able to add away message script on homepage
Posted: Mon Jan 10, 2022 9:15 am
by happyfoodmaker
Hi guys, I used to be able to add simple pop-up messages on my homepage and cart page with the previous versions of Opencart.
Namely in these locations:
/catalog/view/theme/default/template/checkout (cart.tpl)
/catalog/view/theme/default/template/common (home.tpl)
The current version is Opencart 3.0.3.6, the away message does not appear when I tried the same method that used to work.
Thanks in advanced!
Re: No longer able to add away message script on homepage
Posted: Mon Jan 10, 2022 12:00 pm
by fegdeed
It is not recommended to directly edit the default files, that being said, which files did you add the script to in 3.x?
Re: No longer able to add away message script on homepage
Posted: Mon Jan 10, 2022 12:08 pm
by happyfoodmaker
Hi, i tried the same files but they are now .twig instead of .html
How can i add a simple popup message now?
Thanks!
Re: No longer able to add away message script on homepage
Posted: Mon Jan 10, 2022 12:27 pm
by cmsroom
Can you please let us know your old opencart version.
Re: No longer able to add away message script on homepage
Posted: Mon Jan 10, 2022 1:36 pm
by fegdeed
You can add the script in those files, save them, and clear both caches and refresh modification to see if it works.
If it doesn’t then you may have to provide more info including possibly posting the script code here.
Re: No longer able to add away message script on homepage
Posted: Mon Jan 10, 2022 8:35 pm
by paulfeakins
happyfoodmaker wrote: ↑Mon Jan 10, 2022 9:15 am
message does not appear when I tried the same method that used to work.
I bet you didn't clear your caches:
https://www.antropy.co.uk/blog/how-to-c ... t-3-0-2-0/
Re: No longer able to add away message script on homepage
Posted: Tue Jan 11, 2022 3:29 pm
by happyfoodmaker
Issues resolved. Was working on the wrong files! Thanks guys!
Re: No longer able to add away message script on homepage
Posted: Tue Jan 11, 2022 3:34 pm
by aerogel
happyfoodmaker wrote: ↑Mon Jan 10, 2022 9:15 am
Hi guys, I used to be able to add simple pop-up messages on my homepage and cart page with the previous versions of Opencart.
Namely in these locations:
/catalog/view/theme/default/template/checkout (cart.tpl)
/catalog/view/theme/default/template/common (home.tpl)
The current version is Opencart 3.0.3.6, the away message does not appear when I tried the same method that used to work.
Thanks in advanced!
would you share your method or suggest a link to discover?
thanks
Re: No longer able to add away message script on homepage
Posted: Tue Jan 11, 2022 8:15 pm
by paulfeakins
happyfoodmaker wrote: ↑Tue Jan 11, 2022 3:29 pm
Issues resolved. Was working on the wrong files! Thanks guys!
Please add [SOLVED] to the start of the post title.