VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: jhoo on October 06, 2012, 09:17:15 AM

Title: Productor - on Item description
Post by: jhoo on October 06, 2012, 09:17:15 AM
Hi all,
I completed the database on my site, but i would like to add the manufacturer name togheter to the price and the product_SKU.

Could you please help me.

Thanks in advance
Title: Re: Productor - on Item description
Post by: jenkinhill on October 06, 2012, 13:06:56 PM
Please explain more clearly what it is you wish to do. Maybe with an explanatory picture.
Title: Re: Productor - on Item description
Post by: jhoo on October 08, 2012, 18:00:03 PM
Thanks for the reply, i have attached the screen print of what we need.

Please help.

[attachment cleanup by admin]
Title: Re: Productor - on Item description
Post by: bytelord on October 08, 2012, 18:20:18 PM
Hello,

You are using a custom template so i am bot sure in which line you should place the code but i am sure you know where.
You have to edit the file your_joomla_folder/template/your_jooma_template/html/com_virtuemart/category/default.php
After echo' ing product sku place the following code with the style you need (that will place the manufacturer name + link to mafunacturer page)

<?php  $link JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' $product->virtuemart_manufacturer_id '&tmpl=component');
 
$text $product->mf_name?>

<span class="bold"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_MANUFACTURER_LBL'?></span><a class="modal" rel="{handler: 'iframe', size: {x: 700, y: 550}}" href="<?php echo $link ?>"><?php echo $text ?></a>



More information regarding category fields could be found here: http://forum.virtuemart.net/index.php?topic=97744.0
For product fields here: http://forum.virtuemart.net/index.php?topic=92756
and also check and this one: http://forum.virtuemart.net/index.php?topic=100696.0


Regards
Title: Re: Productor - on Item description
Post by: jhoo on October 08, 2012, 19:07:55 PM
Awesome !!! Solved it !