';
}
function woocommerce_cart_wishlist_wrap_end(){
echo '';
}
function wishlist_single_page(){
global $product;
if( function_exists( 'YITH_WCWL' ) ){
$url = add_query_arg( 'add_to_wishlist', $product->id );?>
id );?>
';
}
function gaga_lite_wrapper_end() {
echo '
';
if(is_active_sidebar('woocommerce_left_sidebar')):
echo '
';
dynamic_sidebar('woocommerce_left_sidebar');
echo '
';
endif;
echo '
';
}
function social_share_above_cart(){
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
// check for plugin using plugin name
if ( is_plugin_active( 'accesspress-social-share/accesspress-social-share.php' ) ) {
echo do_shortcode("[apss-share share_text='SHARE THIS']");
}
}
function woocommerce_show_product_sale_flash_start(){
echo '';
}
function woocommerce_show_product_images_end(){
echo '
';
}
function woocommerce_change_sale_to_percentage($content, $post, $product){
if (!$product->is_in_stock()) return;
$sale_price = get_post_meta($product->id, '_price', true);
$regular_price = get_post_meta($product->id, '_regular_price', true);
if (!empty($regular_price) && !empty($sale_price) && $regular_price > $sale_price){
$sale = ceil((($regular_price - $sale_price) / $regular_price) * 100);
$content = 'SALE-' . $sale . '%';
return $content;
}
}
function cart_view_product_page()
{
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
$count = WC()->cart->cart_contents_count;?>