Answers for "how to add product category in menu woocommerce"

1

is product category woocommerce

if( is_product_category() ) {
	// yay, we are on a product category page!
} else {
 
}
Posted by: Guest on October-30-2020
0

Add Product Short Description To Product Category In WooCommerce

function webroom_add_short_description_in_product_categories() {
	global $product;
	if ( ! $product->get_short_description() ) return;
	?>
	<div itemprop="description">
		<?php echo apply_filters( 'woocommerce_short_description', $product->get_short_description() ) ?>
	</div>
	<?php
}
add_action('woocommerce_after_shop_loop_item_title', 'webroom_add_short_description_in_product_categories', 5);
Posted by: Guest on December-09-2021
0

woocommerce add button to product list

// On functions.php
// Add to cart text on product archives (Collection) page
add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' );  
function woocommerce_custom_product_add_to_cart_text() {
    return __( 'Comprar', 'woocommerce' );
}
Posted by: Guest on November-08-2021

Code answers related to "how to add product category in menu woocommerce"

Browse Popular Code Answers by Language