Page 1 of 1

[vQmod] Category on Product Page

Posted: Wed Sep 04, 2013 4:06 pm
by andrei.bogdan
- This vqmod will add categories to your single product page.
- Opencart only shows by default the product's Manufacturer but not the categories that the product is included in.
- This vqmod shows the list of categories, including name and href for each category.
- This will help SEO as the number of links in your website increases, you will have more links for your categories and to your products lists.

DOCUMENTATION
====================
- If you want to display categories in your custom template, please paste the html code:

<?php if( $categories ): ?>
<span><?php echo $text_category; ?></span>
<?php foreach( $categories as $category ): ?>
<a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>&nbsp;
<?php endforeach; ?>
<br />
<?php endif; ?>

TROUBLESHOOTING
==================================
- This module has only been tested with OpenCart 1.5.4.1 and OpenCart 1.5.5.1.
- It might not work with previous versions of OpenCart, use at own risk! It only virtually modifies OpenCart files, so no need to worry.

Re: [vQmod] Category on Product Page

Posted: Wed Aug 05, 2015 10:18 am
by motion2082
Would be great if someone could Update this for OpenCart Version 2 O0

Re: [vQmod] Category on Product Page

Posted: Sun Oct 11, 2015 9:40 pm
by dafmktg
Does anyone have this solution for Opencart version 2.0.3.1...please!

Re: [vQmod] Category on Product Page

Posted: Sun Oct 18, 2015 7:33 pm
by uksitebuilder
Here you go for 2.0.3.1 (not tested other versions)

Re: [vQmod] Category on Product Page

Posted: Thu Feb 18, 2016 1:56 am
by teclive
Could that same code (one posted above my post) also work with 2.1.0.1?