I want to display the SKU of the selected Variation of a product on the product page.
I’m using a WooCommerce Single Layout in Cornerstone and have the Add to Cart form included in the template.
When someone selects the Variation from the drop down menu produced by the Add to Cart form, I need the SKU of the Variation selected in the dropdown menu to appear somewhere on the product page, preferably near the add to cart button.
I’ve already found out how to add the SKU of the Parent Product on the product page, but can’t find a solution for displaying the Variation SKU.
Here’s a product page with this issue (PSW-MAG is the parent SKU, the Variation SKUs start off with that SKU but are much longer):