News:

Looking for documentation? Take a look on our wiki

Main Menu

SKU and Manufacturer info

Started by Jerome, February 22, 2013, 14:47:24 PM

Previous topic - Next topic

Jerome

I would like to know what is the best practice for adding Manufacturer name to the product page?

I got this info from another thread for sku. but I couldn't find one for Manufacturer.

<div class="product-sku">
    <?php
    echo 
JText::_('COM_VIRTUEMART_PRODUCT_SKU').': ';
    echo $this->product->product_sku;
    ?>

        </div>



for manufacturer is this the code that is suppose to work or do I just copy the entire code from the manufacturer.php and pasted were needed?

<?php
// Manufacturer of the Product
if (VmConfig::get('show_manufacturers'1) && !empty($this->product->virtuemart_manufacturer_id)) {
    echo $this->loadTemplate('manufacturer');
}
?>