Post by edkny » Thu Aug 29, 2024 3:49 pm

Hello,

I'm currently using OpenCart version 3.0.3.8 and made some modifications to my .twig files. However, after some time, I noticed that the changes reverted to the default versions. Could you please explain why this is happening and how I can ensure that my modifications are retained?

New member

Posts

Joined
Tue Nov 14, 2023 7:12 pm

Post by by mona » Thu Aug 29, 2024 4:03 pm

How did you make the changes ?
Where did you make the changes ?
Have you checked the error logs to see if you installed an extension that conflicts with your changes ?
Are you using OCMOD and/or VQMOD together with the built in theme editor ?

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by xxvirusxx » Thu Aug 29, 2024 4:07 pm

Make an ocmod file and don't use Twig editor from admin.

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

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

Post by edkny » Thu Aug 29, 2024 4:50 pm

Thank you for answers!
I added some css styles, but besides that I made changes in header.twig, menu.twig and more, I changed their posistions and more
can you advise me how I can make that kind of changes to stay

New member

Posts

Joined
Tue Nov 14, 2023 7:12 pm

Post by by mona » Thu Aug 29, 2024 5:25 pm

by mona wrote:
Thu Aug 29, 2024 4:03 pm
How did you make the changes ?
ie
OCMOD
FTP
VQMOD
THEME EDITOR


by mona wrote:
Thu Aug 29, 2024 4:03 pm
Where did you make the changes ?
Maybe you made changes to the files in the modification folder?


by mona wrote:
Thu Aug 29, 2024 4:03 pm
Have you checked the error logs to see if you installed an extension that conflicts with your changes ?
?

by mona wrote:
Thu Aug 29, 2024 4:03 pm
Are you using OCMOD and/or VQMOD together with the built in theme editor ?
?



There is nothing wrong with OC3.0.3.8 - tell us what you have done and we can tell you how to do it right



Re css -
If your css is not "taking" you have not refreshed cache.
If it is "reverting" then you have a problem with an extension.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by edkny » Thu Aug 29, 2024 6:27 pm

I have made changes via theme editor
common/menu or common/header files
I haven't installed any extension yet

I don't quite understand this part
Are you using OCMOD and/or VQMOD together with the built in theme editor ?

I just edited the twig files in theme editor

maybe I should edit them in another directons


Thank you again for your reply

New member

Posts

Joined
Tue Nov 14, 2023 7:12 pm

Post by by mona » Thu Aug 29, 2024 6:51 pm

There is an issue with using OCMOD together with the theme editor if you do not know what you are doing, but if you have no extensions installed and not using VQmod then it is strange.

Are the edits still in the theme editor?
Are you sure you have not reset the theme editor (ie that will clear your changes)
As virus said - the only other option is not to use it at all and learn how to write OCMODs, but moving stuff around is likely to be quite a big task for you.

1. Check your admin => extensions => installer
2. Check your admin => extension => modifications - In modifications there is a log tab.
3. Check both admin and root config.php are correct.
4. Check your theme settings correct in admin => systems => settings => edit settings page.
5. Delete theme cache via the settings icon on the top right of the dashboard.

You can also try
https://www.opencart.com/index.php?rout ... n_id=36203

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by paulfeakins » Thu Aug 29, 2024 7:34 pm

edkny wrote:
Thu Aug 29, 2024 6:27 pm
I have made changes via theme editor
Never use that.

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 JNeuhoff » Thu Aug 29, 2024 8:15 pm

Perhaps it might be a good idea to sort it out in the next OpenCart 3.0.x.x version, to make it all work together, using this order:

Theme editor
OCmod
VQmod

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by paulfeakins » Fri Aug 30, 2024 10:32 pm

JNeuhoff wrote:
Thu Aug 29, 2024 8:15 pm
Perhaps it might be a good idea to sort it out in the next OpenCart 3.0.x.x version, to make it all work together, using this order:

Theme editor
OCmod
VQmod
Nah just remove the theme editor entirely from it.

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: No registered users and 35 guests