// source --> https://katsaros-sa.gr/wp-content/plugins/woocommerce-colororimage-variation-select/js/shop-frontend.js?ver=5.9.13 
(function($) {

        $(document).on( 'mouseover', '.wcvaswatchinput',
       	 	function( event ){
              event.preventDefault();
              
              var hoverimage    = $(this).attr('data-o-src');
              var parent        = $(this).closest('li');
              var parentdiv     = $(this).closest('div.shopswatchinput');
              

               if (hoverimage) {
                 $(this).closest('.product').find("img.attachment-woocommerce_thumbnail").attr("src",hoverimage);
				         $(this).closest('.product').find("img.attachment-woocommerce_thumbnail").attr("srcset",hoverimage);
                 
               }

               

               return false;
        }
			      



         );

      
        if (wcva_shop.hover_swap == "yes") {
          $(document).on("mouseleave", '.wcvaswatchinput',function(event) {

              event.preventDefault();
              var parent         = $(this).closest('li');
              var parentdiv      = $(this).closest('div.shopswatchinput');
              var default_value  = $(parentdiv).attr("prod-img");

              $(this).closest('.product').find("img.attachment-woocommerce_thumbnail").attr("src",default_value);
              $(this).closest('.product').find("img.attachment-woocommerce_thumbnail").attr("srcset",default_value);
           
              return false;
          }); 
        }

         

        var slider_count = parseInt(wcva_shop.slider_no);

        jQuery(document).ready(function($) {

          if (wcva_shop.enable_slider == "yes") {

            

             $('.wcva-multiple-items').each(function(){

            

              var swatch_count = $(this).attr("swatch-count");
              
              
              if (swatch_count > slider_count) {
                jQuery(this).slick({
                
                  slidesToShow: slider_count,
                  slidesToScroll: slider_count,
                  nextArrow: '<img src="'+wcva_shop.right_icon+'" class="nextArrowBtn">',
                  prevArrow: '<img src="'+wcva_shop.left_icon+'" class="nextArrowBtn">',
              
                }); 
              }
               
            });

            $('.wcva-multiple-items').show();

          }

        });


})(jQuery);
// source --> //katsaros-sa.gr/wp-content/plugins/woocommerce-prices-by-user-role/static/js/frontend/general.js?ver=5.0.2 
jQuery(document).ready(function() 
{
	function hideVariableAddToCartButton()
	{
		if (!jQuery('#variableHideAddToCartButton').length > 0) {
			return false;
		}
		
		selector = jQuery('#variableHideAddToCartButton').parent();
	    selector = jQuery(selector).find('.variations_button');
	    selector.remove();
	    
	    return true;
	} // end hideVariableAddToCartButton

	function hideGroupedAddToCartButton()
	{
        if (!jQuery('.groupedHideAddToCartButton').length > 0) {
            return false;
        }
        
        jQuery('.groupedHideAddToCartButton').each(function() {
            selector = jQuery(this).parent();
            selector = jQuery(selector).find('.single_add_to_cart_button');
            selector.remove();
            selector = jQuery(selector).find('button');
            selector.remove();
        });
        
        return true;
	} // end hideGroupedAddToCartButton
	
	var result = hideVariableAddToCartButton();
	
	if (result) {
		return true;
	}

	hideGroupedAddToCartButton();
	
});