VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: wicko on November 13, 2015, 15:31:13 PM

Title: Editing the product view on the category page
Post by: wicko on November 13, 2015, 15:31:13 PM
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?

Title: Re: Editing the product view on the category page
Post by: PRO on November 13, 2015, 15:38:45 PM

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


The browse page

sublayouts/products.php
Title: Re: Editing the product view on the category page
Post by: wicko on November 13, 2015, 16:41:39 PM
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?

Title: Re: Editing the product view on the category page
Post by: jenkinhill on November 13, 2015, 16:48:57 PM
You can override sublayouts. [joomlatemplate]/html/com_virtuemart/sublayouts/#####
Title: Re: Editing the product view on the category page
Post by: wicko on November 13, 2015, 17:16:28 PM
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
Title: Re: Editing the product view on the category page
Post by: jenkinhill on November 14, 2015, 13:54:33 PM
Manually create the override. That's what I always do, so I end up building a library of override files for possible future use.
Title: Re: Editing the product view on the category page
Post by: wicko on November 14, 2015, 14:45:52 PM
I did manually create the file and everything is working now.

Thank you