We have a lot of configurable products on our website and we need to show the schema on the basis of configurable child on view source. We are using magento dafault way of displaying child products when any configurable option is selected. This is a screenshot of our product page.
The schema that shows right now on ctrl + u is of configurable product.
I need to show the schema for simple products here and that too on ctrl + u. Example: When any configurable option is selected then the simple product that comes up, I need to show the schema for that on ctrl + u, I think for that I need to load the page first and that option will be auto selected so that I can find out which simple product is selected and show the schema based on that.
I can not think of a way to proceed. Could someone guide me how I can proceed with this.