News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Display the category of a product in the product details page.

Started by Valdez360, October 09, 2013, 11:53:43 AM

Previous topic - Next topic

Valdez360

I have had a look at this thread http://forum.virtuemart.net/index.php?topic=114116.0, but I cannot get it to help me. When I put

<?php echo $this->category->product_name;?>

Into a file it displays nothing.

I need to display the product category details in a modal box rather than the product details.  Has anyone ever had to display category details?

Thanks in  advance.

i am running Joomla! 2.5.14 and VM2.0.22c

Maxim Pishnyak

Find thread 'How to show all categories a product belong to ??"
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Valdez360

Hi Maxim

The problem is that the page I am trying to retrieve the category link on does not have a URL with any VM detail at all. However, it does have this link already which displays the product details info in a modal box:

<a <?php echo $prod_detHREF ?>

id="groupdet_<?php echo $grCounter ?>" class="modal"

rel="{handler: 'iframe', size: {x: 900, y: 500}}"> <?php echo JText::_('COM_PRODUCTBUILDER_PRODUCT_DETAILS');?>

</a>


I want to delete this link and rep[lace it with a link to the parent category. how would you approach it? None of the code fields I have tried manage to grab anything at all.