Page 1 of 1
Create a module to modify the product view?
Posted: Sat Apr 06, 2013 3:00 pm
by BrettLefty
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.
Re: Create a module to modify the product view?
Posted: Sat Apr 06, 2013 11:23 pm
by GoGo OpenCart
vQmod would be the best choice...
Re: Create a module to modify the product view?
Posted: Sat Apr 06, 2013 11:43 pm
by labeshops
Modules add things to pages, they don't modify pages themselves. For that you need to use vqmod or edit your template files.
Re: Create a module to modify the product view?
Posted: Sun Apr 07, 2013 2:55 am
by BrettLefty
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"?