News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

DIsplay Model

Started by raunhar, November 09, 2015, 07:13:53 AM

Previous topic - Next topic

raunhar

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.

jenkinhill

Do you mean the SKU? Where do you want to display it?
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

raunhar

Yes, SKU.
I need to display it above the Product Description.

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

raunhar

#4
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.