Post by Bradyn » Tue Jul 05, 2016 7:31 am

Hey guys,

I have a latest module and a bestseller module, both of which display products that I'm assuming are pulled from the database with a query, but I'd like them to be displayed the same way. How can I modify the latest module to match the style of the bestseller module or just copy the bestseller module and copy/edit the code where it pulls the information?

I know a bit of coding, mainly C#, so php isn't quite greek to me but I haven't been able to figure out which file this information is in/where specifically it's getting it's products.

OpenCart Version 2.1.0.1.

Newbie

Posts

Joined
Tue Jul 05, 2016 7:26 am

Post by straightlight » Wed Jul 13, 2016 9:48 am

Welcome to Opencart forum. This documentation may be useful to start developing new modules: http://docs.opencart.com/developer/module/

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by Bradyn » Sat Jul 30, 2016 10:10 pm

I've attempted to copy the style by using the tpl for the original module in /var/www/catalog/view/theme/(THEME)/template/module/ and it sort of works (but not really) for one module and breaks the other. What other things should I be looking to do to get the style copied over?

Newbie

Posts

Joined
Tue Jul 05, 2016 7:26 am

Post by straightlight » Sat Jul 30, 2016 10:12 pm

Bradyn wrote:I've attempted to copy the style by using the tpl for the original module in /var/www/catalog/view/theme/(THEME)/template/module/ and it sort of works (but not really) for one module and breaks the other. What other things should I be looking to do to get the style copied over?
Could you explain the step-by-step process that you did?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by moneycarlo » Mon Aug 01, 2016 9:46 am


Active Member

Posts

Joined
Wed Sep 28, 2011 3:40 am
Who is online

Users browsing this forum: No registered users and 8 guests