News:

Support the VirtueMart project and become a member

Main Menu

Editing the product view on the category page

Started by wicko, November 13, 2015, 15:31:13 PM

Previous topic - Next topic

wicko

Hi

I need to edit the product details that appear on the category page. I want to add the manufacture about the product name.

I have created overrides of the Category and Product details page.

If I edit the productdetails/default.php I can add the manufacture name above the product title quite easily but adding <?php echo $this->product->mf_name; ?> above the product title.

But how can I get this above the product title on the browse page?

Designing and maintaining Joomla websites since 2007

PRO


<?php echo $product->mf_name; ?>


The browse page

sublayouts/products.php

wicko

Ok I see that Joomla does not give me the option to create this as an override.

Now I can see where to make the changes. Thank You.

But is there a was I can create a override file so this is not overwritten with new updates?

Designing and maintaining Joomla websites since 2007

jenkinhill

You can override sublayouts. [joomlatemplate]/html/com_virtuemart/sublayouts/#####
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

wicko

#4
Ok what I meant is that in the Joomla setting to create overides it doe not give the option to create this as a sub layout. I can manually create it if that is what will fix it.

Thank you.

David
Designing and maintaining Joomla websites since 2007

jenkinhill

Manually create the override. That's what I always do, so I end up building a library of override files for possible future use.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

wicko

I did manually create the file and everything is working now.

Thank you
Designing and maintaining Joomla websites since 2007