Output Swatch in Product Attributes
-
Is it possible to also output the color swatches where the product attributes appear by default or when output arbitrarily…
// Show attributes after summary in product single view add_action('woocommerce_single_product_summary', function() { global $product; $colour = $product->get_attribute( 'colour' ); echo 'COLOUR: ' . $colour; }, 25);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Output Swatch in Product Attributes’ is closed to new replies.