News:

Support the VirtueMart project and become a member

Main Menu

Productor - on Item description

Started by jhoo, October 06, 2012, 09:17:15 AM

Previous topic - Next topic

jhoo

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

jenkinhill

Please explain more clearly what it is you wish to do. Maybe with an explanatory picture.
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

jhoo

Thanks for the reply, i have attached the screen print of what we need.

Please help.

[attachment cleanup by admin]

bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

jhoo