Trying to create a new field on product page containing product's reference code that's different for every size in our store. Changing that size on the product page does change the reference code in one place, in "about this product" tab which is stock functionality, but I can't understand what part of code I need to modify or add to create another field with exactly the same contents but elsewhere on the page, say, below the price. Supposedly some javascript is triggered on size/feature change but I have no clue where to look to configure it.
I am of course able to output the product's reference in a template, but that will only show the first reference code that's not changing upon selecting a different attribute value (size) for the product.