Post by angelo » Wed Dec 07, 2011 7:37 pm

Hi, I've just started working on a template and till now I've just overridden .tpl files by creating a new folder under catalogue/view/theme. Now I need to add modify a behavior in a php file under catalogue/controller/common (I need to isolate the categories module from the others in the left column in order to nest it into my navigation menu) an I've just realized that (it seems to me) the fallback method doesn't apply to the controller (you can't create a folder with your customized files overriding the default ones). I should then edit the default file.
Is it a good practice? What about upgrades?
Thanks

New member

Posts

Joined
Tue Dec 06, 2011 8:23 pm

Post by webvet » Wed Dec 07, 2011 11:18 pm

The best way to modify .tpl and .php files without modifying any core files is to use vQmod:

http://forum.opencart.com/viewtopic.php ... 42#p196942

This is planned to be a future-proof/upgrade-proof method as you will see from the info provided in the link.

Genuine, Honest Opencart Support @ http://webvetservices.com


User avatar
Active Member

Posts

Joined
Thu May 14, 2009 2:04 am
Location - Shropshire, UK

Post by angelo » Wed Dec 07, 2011 11:36 pm

Thank you so much... I'll give it a read... Cheers

New member

Posts

Joined
Tue Dec 06, 2011 8:23 pm

Post by webvet » Wed Dec 07, 2011 11:42 pm

No problem - it's great fun to use, and there are loads of free scripts now available that others have come up with (alongwith some very sophisticated commercial ones) on the relevant forum threads.

Enjoy :)

Genuine, Honest Opencart Support @ http://webvetservices.com


User avatar
Active Member

Posts

Joined
Thu May 14, 2009 2:04 am
Location - Shropshire, UK
Who is online

Users browsing this forum: Amazon [Bot] and 91 guests