Post by oc2020 » Fri Jun 19, 2020 10:23 pm

Hi straightlight, can you elaborate about how to create new event files? I thought everything we talked about are just some .twig files on the server, but it seems there's a cache system that confused most people.

straightlight wrote:
Fri Jun 19, 2020 7:57 pm
letxobnav wrote:
Fri Jun 19, 2020 8:50 am
And if I decided to stop using Theme Editor from now on, what I should do to make it work for an external editor/FTP approach (my scenario B)?
remove the version from the theme editor.
If you need to keep those changes, save the source and put it in an ocmod or copy it over the core.
In the end, keep your theme table empty.
We don't copy over the core!

Create new event files would be an alternative solution.

New member

Posts

Joined
Wed May 13, 2020 5:11 am

Post by straightlight » Fri Jun 19, 2020 10:25 pm

oc2020 wrote:
Fri Jun 19, 2020 10:23 pm
Hi straightlight, can you elaborate about how to create new event files? I thought everything we talked about are just some .twig files on the server, but it seems there's a cache system that confused most people.

straightlight wrote:
Fri Jun 19, 2020 7:57 pm
letxobnav wrote:
Fri Jun 19, 2020 8:50 am

remove the version from the theme editor.
If you need to keep those changes, save the source and put it in an ocmod or copy it over the core.
In the end, keep your theme table empty.
We don't copy over the core!

Create new event files would be an alternative solution.
Of course, followed is the wiki documentation on how to proceed with the Events: https://github.com/opencart/opencart/wiki/Events-System .

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by oc2020 » Fri Jun 26, 2020 12:10 am

Thanks for the info! Forgive me if I repeat the question, but this is what opencart designed for users:

1. People understand using twig files to adjust the page layout, and these twig files are text files saved on the server like all other files (CSS, php, HTML, js,etc)

2. Some people saw the theme editor and thought this is simply another way to edit the text files.

3. Some experts pointed out the theme editor is not as convenient as expected and not suggested to use.

4. There's no simple way to go back to the beginning -- ignore the theme editor and use an external text editor to change the twig file.

5. The only safe way being suggested is to use some advanced techniques based on events.

Am I the only one who feels this could b a little more user-friendly?

New member

Posts

Joined
Wed May 13, 2020 5:11 am
Who is online

Users browsing this forum: thekrotek and 23 guests