Wednesday, November 21, 2012

Show SKU Field in product page of Virtuemart 2

Add SKU Field in product page of Virtuemart 2

Go to components/com_virtuemart/views/productdetails/tmpl/default.php and open it with Notepad++, preferrably, or some type of color-coded HTML/PHP editor so you can find it easier.

Find this code for the manufacturers link:


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


and place this code before manufacturers code :


<div class="skuNumber"><br />
<?php echo JText::_('COM_VIRTUEMART_CART_SKU') ?>: <?php echo $this->product->product_sku; ?>
</div>
Disqus Comments