Specifically Link To the “Leave a review” part of product page? [closed]

You would probably need to do this with jQuery by detecting the hash value and activating the class based on that. Something like this might work: add_action(‘wp_footer’, ‘custom_review_form_activate’); function custom_review_form_activate() { echo “<script>if (window.location.hash == ‘review_form’) { jQuery(‘.reviews_tab’).addClass(‘active’); }</script>”; } (Of course if your theme or customizations already have some jquery you can add it … Read more

Woocommerce : read [max_qty] using backorder

Solved using this code: if ($product->is_type( ‘variable’ )){ // Get the available variations for the variable product $available_variations = $product->get_available_variations(); // Initializing variables $variations_count = count($available_variations); $loop_count = 0; // Iterating through each available product variation foreach( $available_variations as $key => $values ) { $loop_count++; // Get the term color name $attribute_color = $values[‘attributes’][‘attribute_pa_size’]; $wp_term … Read more

How to display WooCommerce product tag names on home and category pages

I think get_the_tag_list is only used for the default WordPress tags. WooCommerce product tags are a custom taxonomy called product_tag. Therefore you cannot use this function to return these tags. (anyone please correct me if I am wrong here) Instead you could use the WordPress get_the_terms() function, to get a “similar” result. Bare bones: // … Read more