1, 'class' => implode( ' ', array_filter( array( 'button', 'product_type_' . $product->product_type, $product->is_purchasable() && $product->is_in_stock() ? 'add_to_cart_button' : '', $product->supports( 'ajax_add_to_cart' ) ? 'ajax_add_to_cart' : '', ) ) ), ); $args = apply_filters( 'woocommerce_loop_add_to_cart_args', wp_parse_args( $args, $defaults ), $product ); wc_get_template( 'inc/woocommerce/add-to-cart.php', $args ); } } endif; /** * Refresh WooCommerce cart count instantly. * * @since Hestia 1.0 */ function hestia_woocommerce_header_add_to_cart_fragment( $fragments ) { global $woocommerce; ob_start(); ?> cart->cart_contents_count ), 'hestia-pro' ), absint( $woocommerce->cart->cart_contents_count ) );?> - cart->get_cart_total(), array( 'span' => array( 'class' => array() ) ) ); ?>
'; } /** * Change the layout after each single product listing */ function hestia_woocommerce_after_shop_loop_item() { echo '
'; } /** * Change the layout of the thumbnail on single product listing */ function hestia_woocommerce_template_loop_product_thumbnail() { if ( has_post_thumbnail() ) { ?>
ID, 'product_cat' ); $i = false; if ( ! empty( $product_categories ) ) { echo '
'; foreach ( $product_categories as $product_category ) { $product_cat_id = $product_category->term_id; $product_cat_name = $product_category->name; if ( ! empty( $product_cat_id ) && ! empty( $product_cat_name ) ) { if ( $i ) { echo ' , '; } echo '' . esc_html( $product_cat_name ) . ''; $i = true; } } echo '
'; } ?>

post_excerpt ) : ?>
post_excerpt ) ?>
'; }