Display Selected Color/Size on Single Product Page
-
0
down vote
favorite
I am building my first WooCommerce-based store with only variable products. The current attributes are color and size (for all products). I would like to display the selected option for just the color attribute in a different place, like in this screenshot:Please disregard the swatches. I have already installed a plugin for that (a paid one, actually) so I’m not asking how to implement the color swatches.
As you can see, when a color is selected, the name (i.e. “Pink,” “Red” etc) displays on the same line as the label. How can I do this? I’m specifically asking for the php code to display the selected color option/attribute as I’ll (hopefully) figure out where to place it.
For those who might be wandering, no, the plugin doesn’t offer an option for that.
Thank you!
- The topic ‘Display Selected Color/Size on Single Product Page’ is closed to new replies.