This post explains how you can display SKU (Stock Keeping Unit) of a product on the frontend of product page in OpenCart 3.0.2.
We will be doing this through an ocmod modification that I coded.
OCMOD to show OpenCart SKU on product page
You can download the OCMOD from:
Download the install.xml file and compress it into a zip file (zip the install.xml, not the folder it is in).
Name the file: productsku.ocmod.zip
The ocmod for sku looks for this code in the catalog/view/theme/default/template/product/product.twig file. Make sure you add it where you want the code to be output by the ocmod.
<!-- product_sku -->
How to install OCMOD opencart 3.0.2 modification
- Go to OpenCart Admin > Extensions > Installer
- Upload the zipped ocmod file, wait till success
- Go to Modifications
- Click on refresh on top right (not clear)
- Go to OpenCart admin homepage, click on refresh again and refresh the cache
Let me know if you feel any difficulty in installing or using this extension.