id);
$id = $product->id;
$wishlist_url = YITH_WCWL()->get_wishlist_url(); ?>
get_wishlist_url(); ?>
id) ? $product->id : 0;
}
$is_button = !isset($button_or_link) || !$button_or_link ? get_option('yith_woocompare_is_button') : $button_or_link;
if (!isset($button_text) || $button_text == 'default') {
$button_text = get_option('yith_woocompare_button_text', esc_html__('Compare', 'sparklestore'));
yit_wpml_register_string('Plugins', 'plugin_yit_compare_button_text', $button_text);
$button_text = yit_wpml_string_translate('Plugins', 'plugin_yit_compare_button_text', $button_text);
}
printf('%s', '#', 'compare link-compare' . ( $is_button == 'button' ? ' button' : '' ), $product_id, $button_text);
}
remove_action('woocommerce_after_shop_loop_item', array('YITH_Woocompare_Frontend', 'add_compare_link'), 20);
}
/**
* Add the link to quickview function area
*/
if (defined('YITH_WCQV')) {
function sparklestore_quickview() {
global $product;
$quick_view = YITH_WCQV_Frontend();
remove_action('woocommerce_after_shop_loop_item', array($quick_view, 'yith_add_quick_view_button'), 15);
$label = esc_html(get_option('yith-wcqv-button-label'));
echo '' . $label . '';
}
}
/**
* Load advance search WooCommerce function area
*/
if (!function_exists('sparklestore_advance_search_form')) {
function sparklestore_advance_search_form() {
echo '';
$args = array(
'number' => '',
'orderby' => 'name',
'order' => 'ASC',
'hide_empty' => true
);
$product_categories = get_terms('product_cat', $args);
$categories_show = '';
$check = '';
if (is_search()) {
if (isset($_GET['term']) && $_GET['term'] != '') {
$check = $_GET['term'];
}
}
$checked = '';
$allcat = esc_html__('All Categories', 'sparklestore');
$categories_show .= '';
$form = '';
echo $form;
echo '
';
}
}
/**
* Sparkle Tabs Category Products Ajax Function
*/
if (!function_exists('sparklestore_tabs_ajax_action')) {
function sparklestore_tabs_ajax_action() {
$cat_slug = $_POST['category_slug'];
$product_number = $_POST['product_num'];
ob_start(); ?>
'product',
'tax_query' => array(
array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => $cat_slug
)),
'posts_per_page' => $product_number
);
$query = new WP_Query($product_args);
if ($query->have_posts()) {
while ($query->have_posts()) { $query->the_post();
woocommerce_get_template_part('content', 'product');
}
}
wp_reset_postdata();
?>
is_on_sale()) :
echo apply_filters('woocommerce_sale_flash', '
' . esc_html__('Sale!', 'sparklestore') . '
', $post, $product);
?>
' . $product_label_custom . '
';
}
?>
*/