VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: raunhar on November 09, 2015, 07:13:53 AM

Title: DIsplay Model
Post by: raunhar on November 09, 2015, 07:13:53 AM
I am using a template from Virtuemarttemplates.net .
I need to display the Model Number also, which is not visible at present.

How do I do it.
Title: Re: DIsplay Model
Post by: jenkinhill on November 09, 2015, 09:53:03 AM
Do you mean the SKU? Where do you want to display it?
Title: Re: DIsplay Model
Post by: raunhar on November 09, 2015, 10:50:51 AM
Yes, SKU.
I need to display it above the Product Description.
Title: Re: DIsplay Model
Post by: GJC Web Design on November 09, 2015, 11:47:39 AM
hmmm.. no versions given .. you don't even say if cat or prod view?

Information is the KEY to getting an answer.. we shouldn't have to ask for info!  Your the one who wants the advice...

either

<?php
              echo '<div>'.JText::_("COM_VIRTUEMART_PRODUCT_SKU").': &nbsp;'.$this->product->product_sku.'</div>';
            ?>

or

<?php if ($sku) {
              echo '<div>'.JText::_("COM_VIRTUEMART_PRODUCT_SKU").': &nbsp;'.$product->product_sku.'</div>';
            } ?>

in either in over ridden templates\xxxx\html\com_virtuemart\productdetails\default.php

or 

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

in
templates\xxxxx\html\com_virtuemart\sublayouts\products.php
Title: Re: DIsplay Model
Post by: raunhar on November 10, 2015, 06:11:39 AM
Sorry, forgot to inform the version and URL
Joomla 3
VM 3.0.10

URL; http://www.pinkstory.in

on the product page, where we show price, long description and add to cart.