Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $variation_data = null;
- if (get_class($_product) == "WC_Product_Variation") {
- $variation_data = $_product->get_variation_attributes();
- }
- if ( isset( $variation_data ) ) {
- $_category = woocommerce_get_formatted_variation( $_product->variation_data, true );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement