Post by happyfoodmaker » 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!
Last edited by happyfoodmaker on Tue Jan 11, 2022 3:29 pm, edited 1 time in total.


Posts

Joined
Fri Jan 08, 2016 3:40 pm

Post by fegdeed » Mon Jan 10, 2022 12:00 pm

It is not recommended to directly edit the default files, that being said, which files did you add the script to in 3.x?

Image
Get a secure, fast, and reliable web hosting service from https://turnuphosting.com/opencart-hosting/.


Active Member

Posts

Joined
Fri Sep 21, 2018 12:01 am

Post by happyfoodmaker » Mon Jan 10, 2022 12:08 pm

Hi, i tried the same files but they are now .twig instead of .html
How can i add a simple popup message now?

Thanks!


Posts

Joined
Fri Jan 08, 2016 3:40 pm

Post by cmsroom » Mon Jan 10, 2022 12:27 pm

Can you please let us know your old opencart version.

You may like these extension : - https://www.opencart.com/index.php?rout ... r=cmsrooms


New member

Posts

Joined
Fri Sep 28, 2018 1:37 am

Post by fegdeed » Mon Jan 10, 2022 1:36 pm

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.

Image
Get a secure, fast, and reliable web hosting service from https://turnuphosting.com/opencart-hosting/.


Active Member

Posts

Joined
Fri Sep 21, 2018 12:01 am

Post by paulfeakins » Mon Jan 10, 2022 8:35 pm

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/

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by happyfoodmaker » Tue Jan 11, 2022 3:29 pm

Issues resolved. Was working on the wrong files! Thanks guys!


Posts

Joined
Fri Jan 08, 2016 3:40 pm

Post by aerogel » Tue Jan 11, 2022 3:34 pm

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

New member

Posts

Joined
Thu Jan 04, 2018 8:14 pm

Post by paulfeakins » Tue Jan 11, 2022 8:15 pm

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.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: nonnedelectari, Semrush [Bot] and 70 guests