';
$absolutte_shop_post_page_obj = get_post( intval( $absolutte_shop_post_page ) );
$absolutte_shop_post_page_content = apply_filters( 'the_content', $absolutte_shop_post_page_obj->post_content );
echo $absolutte_shop_post_page_content; //Already sanitized via the filter the_content
echo '
';
}
}
}
add_action( 'woocommerce_sidebar', 'absolutte_add_after_shop', 20 );
/**
* Remove Catalog Ordering on Shop Page
*/
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
/**
* Close product link after thumbnails
*/
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_product_link_close', 5 );
add_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_close', 11 );
/**
* Remove Add to cart and add it inside product_text
*/
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_add_to_cart', 15 );
/**
* Place Add to wishlist button inside product_thumbnail_wrap
*/
if ( class_exists( 'YITH_WCWL' ) ) {
add_action( 'woocommerce_before_shop_loop_item_title', 'absolutte_wishlist_button', 11 );
if ( !function_exists( 'absolutte_wishlist_button' ) ) {
function absolutte_wishlist_button() {
echo do_shortcode( '[yith_wcwl_add_to_wishlist]' );
}
}
}
/**
* Add wrapper for product text on content-product.php
*/
add_action( 'woocommerce_shop_loop_item_title', 'absolutte_wrapper_product_text_start', 8 );
add_action( 'woocommerce_after_shop_loop_item_title', 'absolutte_wrapper_product_text_end', 20 );
if ( !function_exists( 'absolutte_wrapper_product_text_start' ) ) {
function absolutte_wrapper_product_text_start() {
echo '';
}
}
if ( !function_exists( 'absolutte_wrapper_product_text_end' ) ) {
function absolutte_wrapper_product_text_end() {
global $product;
if ( ! $product->is_in_stock() ) {
echo '
';
esc_html_e( 'Out of stock', 'absolutte' );
echo '
';
}
echo "
";
}
}
/**
* Insert the opening anchor tag for products in the loop.
*/
remove_action( 'woocommerce_before_shop_loop_item', 'woocommerce_template_loop_product_link_open', 10 );
add_action( 'woocommerce_before_shop_loop_item', 'absolutte_template_loop_product_link_open', 10 );
if ( ! function_exists( 'absolutte_template_loop_product_link_open' ) ) {
function absolutte_template_loop_product_link_open() {
echo '