is product category woocommerce
if( is_product_category() ) {
// yay, we are on a product category page!
} else {
}
is product category woocommerce
if( is_product_category() ) {
// yay, we are on a product category page!
} else {
}
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);
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' );
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us