Post by BrettLefty » Sat Apr 06, 2013 3:00 pm

I've made some modifications to the product page. I don't want to just modify the core files though. How can I create a module to modify the product view page without modifying core files?

I know I can use VQMOD to modify them, but I'd rather stick with the extensible nature of native OpenCart.

Newbie

Posts

Joined
Mon Oct 03, 2011 12:26 pm

Post by GoGo OpenCart » Sat Apr 06, 2013 11:23 pm

vQmod would be the best choice...

See all my extensions: https://www.opencart.com/index.php?rout ... 20OpenCart


User avatar
Active Member

Posts

Joined
Mon Nov 14, 2011 11:30 pm

Post by labeshops » Sat Apr 06, 2013 11:43 pm

Modules add things to pages, they don't modify pages themselves. For that you need to use vqmod or edit your template files.

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by BrettLefty » Sun Apr 07, 2013 2:55 am

Awesome, thanks for the replies guys. It sounds like vqmod is the way to go. I would think that is a weakness though. Aren't we supposed to be using MVC so that everything is extensible without modifying core files? Shouldn't I be able to create controller/module/brettsmod.php and then tell it to "hook controller/product/product.php"?

Newbie

Posts

Joined
Mon Oct 03, 2011 12:26 pm
Who is online

Users browsing this forum: No registered users and 7 guests