SKU = "Store Keeping Unit". This is an identifier given to each product.
On Virtuemart, you are free to follow any rules to design its value.
If you handle SKUs from other vendors on your store, you may find duplicate values.
In some cases, we want to show this SKU value on product details page, It will be very easy if you know this way:
- Find this file on your hosting in order to edit it: <your_site>/components/com_virtuemart/views/productdetails/tmpl/default.php
- Choice position you want to show SKU and add this code:<?php // Product SKU ?><h1><?php echo 'SKU: '?><?php echo $this->product->product_sku ?></h1>
- You don't need use tag <h1>.
Nice job, thank you very much, it worked like magic.
ReplyDeleteworks fine TKVM
ReplyDeleteThx!
ReplyDeleteThis works great in product page. how about modules? like random product? how can we display also there sku?
ReplyDeleteThis works great in product page. how about modules? like random product? how can we display also there sku?
ReplyDeletePreciso de colocar o SKU do produto no carrinho de compras, e não vou colocar o nome do produto.
ReplyDeleteAlguém de uma boa dica ??
Great post! Thank you so much for sharing this well defined to show SKU of product in Virtuemart.
ReplyDelete