VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: fredmeister on May 22, 2015, 00:55:39 AM

Title: How to display the Manfucturer's name in the Category layout?
Post by: fredmeister on May 22, 2015, 00:55:39 AM
Hi,

I am new to VirtueMart.

I would like the manufacturer name to be displayed for each product displayed in category layout.

I am using VirtueMart v3.0.6.2

Can anyone please help me?

Thank you
Title: Re: How to display the Manfucturer's name in the Category layout?
Post by: jenkinhill on May 22, 2015, 15:57:33 PM
Something like  <?php echo $product->manufacturer; ?>

And please update VM.  http://virtuemart.net/news/latest-news/469-security-release-vm3-0-8
Title: Re: How to display the Manfucturer's name in the Category layout?
Post by: fredmeister on May 22, 2015, 17:53:48 PM
Thank you for the prompt reply.

Please excuse my ignorance, but where should I be adding that code?  I've tried in a few places and kept getting a white page, so I reverted back to the original state.

And, indeed, I will proceed with an update :)

Thanks again.
Title: Re: How to display the Manfucturer's name in the Category layout?
Post by: fredmeister on May 28, 2015, 21:38:54 PM
If anyone can guide me it would be very appreciated.

Thank you
Title: Re: How to display the Manfucturer's name in the Category layout?
Post by: jenkinhill on May 29, 2015, 00:13:32 AM
As I said the code will be something like I posted but I have not tested it.  It will need to go in the file components/com_virtuemart/sublayouts/products.php, but between relevant html tags. A WSOD suggests you were pasting within PHP tags.
Title: Re: How to display the Manfucturer's name in the Category layout?
Post by: fredmeister on May 29, 2015, 17:18:42 PM
Thank you for taking the time to clarify it  :)