Author Topic: How to alter the related products and / or related categories listing HTML  (Read 1703 times)

bardius

  • Beginner
  • *
  • Posts: 16
    • George Bardis :: Team Leader / Senior Web Developer
If you need to enhance the HTML generated for the related products or categories that appear on the product details page so you can easier integrate to you template and styling you can edit the file
administrator\components\com_virtuemart\models\customfields.php

find the line 675 and change the code  for return command to your liking.

(example)
return '<h3>'.JHTML::link ( JRoute::_ ( 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $value . '&virtuemart_category_id=' . $related->virtuemart_category_id ), $related->product_name, array ('title' => $related->product_name ) ).'</h3>'.JHTML::link ( JRoute::_ ( 'index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $value . '&virtuemart_category_id=' . $related->virtuemart_category_id ), $thumb, array ('title' => $related->product_name, 'class' =>  'productThumb') );

same goes for the related categories return command that exists some lines bellow.
George Bardis
Team Leader / Senior Web Developer
http://www.bardis.info

falcos

  • Beginner
  • *
  • Posts: 2
I just can't seem to find any type of "related item" or "related categories" anywhere in the backend of the site.

What am I overlooking or missing??  Where is this option?

Tx


bardius

  • Beginner
  • *
  • Posts: 16
    • George Bardis :: Team Leader / Senior Web Developer
dude check the Custom Fields tab in the product edit page at the backend
George Bardis
Team Leader / Senior Web Developer
http://www.bardis.info