News:

Looking for documentation? Take a look on our wiki

Main Menu

Help displaying Product SKU in frontend of VM 2.0.18a

Started by richdean77, February 13, 2013, 09:56:13 AM

Previous topic - Next topic

richdean77

Does anyone know how to display the SKU in the frontend of VM 2.0.18a?

I have edited past templates by going to /components/com_virtuemart/views/productdetails/tmpl and editing deafult.php

But for some reason the template I am working on I can delete the file deafult.php and the shopping cart continues to work, so I am wondering if something has changed and the templates frontend structure is controlled from somewhere else?

I know I have to add:

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


Before

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


But I don't know which file I need to add this code for the SKU to appear in the frontend.

I have also tried modifying:

/public_html/templates/theme336/html/com_virtuemart/productdetails

Any help would be much appreciated