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

SKU on Product Page

Started by crystalm28, October 11, 2016, 16:45:51 PM

Previous topic - Next topic

crystalm28

Hello:

I would like to add the SKU to my product page.  I went to Products/Custom Fields, then selected "Property", but I don't see the "SKU" anywhere.  What am I doing wrong?

VM 3.0.16

Thank you in advance ;-).

I found this in a previous forum......
"You just need to add "Property" type custom field and select SKU property. This field was added in VM 3.0.10 http://virtuemart.net/news/latest-news/472-release-of-3-0-10"

K&K media production

After you've added it to your custom fields you must go to your product edit, choose tab custom fields and add your new custom field to your product. Now you can choose SKU.

crystalm28

Thank you so much!!  That worked.  Is there a way to globally add it to all our products, instead of manually adding it to each product?

PRO

in your product template

<?php echo $this->product->product_sku ?>

its not a custom field, its a standard field

GJC Web Design

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

AH

yes we were  :), still prefer it though  :)
Regards
A

Joomla 4.4.5
php 8.1

PRO

Quote from: GJC Web Design on October 11, 2016, 18:28:37 PM
we were told off when we said that..   ;)

http://forum.virtuemart.net/index.php?topic=133267
Quote from: AH on October 11, 2016, 21:19:27 PM
yes we were  :), still prefer it though  :)

I just looked at that custom field. Honestly, did not know it was there.


AH

I meant that I prefer to create the override as you suggested pro  8)
Regards
A

Joomla 4.4.5
php 8.1

crystalm28

Thank you. Forgive me for asking, but how do I add a title to the coding (I am not good with PHP). When I add the coding, it shows the SKU, but there is no label indicating it's an SKU. 

Thank you!!!

crystalm28

Also, let's say that you have a shoe, with many sizes (in the custom field).  The SKU only updates if you make one change.  For example,

Drop down in Cart shows.....
Shoe Size 7
Shoe Size 8
Shoe Size 9

If you switch from 7 to 8 the SKU is updated.  However, if you switch again to the next size (from Size 8 to Size 9) the SKU does not update.

This is true if you use the custom field SKU OR add the PHP coding. 

GJC Web Design

SKU: <?php echo $this->product->product_sku ?>

look for javascript errors etc
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

crystalm28

So simple...thank you so much!!!