fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

image not changing

Moshe Neurath

when I hover over the attributes on the catalogue page the image does not change.

eg when I hover over gold the gold option doesn’t show.

It is working on the product page.

eg https://www.hyglossproducts.com/?s=metallic&asp_active=1&p_asid=1&p_asp_data=1&filters_initial=1&filters_changed=0&qtranslate_lang=0&woo_currency=USD&current_page_id=31456

https://www.hyglossproducts.com/product/metallic-foil-paper-rolls/ image does change

see images belowimage changes.pngimage does not change.png

Hakik Zaman

Hi Moshe,

Thanks for reaching out to us. You are using the Imagify <picture> tag.

Our plugin doesn’t work with <picture> our plugin always find <img> and replace the <im src=””>

So, I have changed the settings like this: https://paste.pics/QGIIN

Also, added this snippet inside your child theme’s functions.php file: https://paste.pics/QGIJA

Please check now and let me know if it resolves your issue.

Thank You

Moshe Neurath

Thank you.

Is there an option to have an arrow to see more colors in place of ‘more’ so the user can scroll through?

Hakik Zaman

Hi Moshe,

Glad to know it is resolved.

Is there an option to have an arrow to see more colors in place of ‘more’ so the user can scroll through?

Unfortunately, the feature is not currently available.

Please send the feature request here: https://storepress.fider.io/

and ask your other to upvote it.

By the way, we get excited & honored when you use our plugin on your site.

If you found my support helpful, could you please leave your valuable review here: https://wordpress.org/support/plugin/woo-variation-swatches/reviews/?filter=5

Your rating keeps us inspired.

Thank You

Moshe Neurath

it is working now… the images load slowly.

is there anything i can do about that? Do you think the change is affecting site speed?

Hakik Zaman

Hi Moshe,

I have changed the threshold here: https://paste.pics/QGK72 to stop the API for those products which has up to 15 variations.

Please check now.

Note: you should uncheck these options to make API fetch smoother: https://paste.pics/QGK7G

Thanks

Moshe Neurath

those settings make the site faster.

What am I fetching with the API? The images?

I show upto 5 images at a time, should I change it to 5 will that help?

Also doesn’t always work in incognito. Do I need to clear site caches to see the changes?

 

Hakik Zaman

Hi Moshe,

What am I fetching with the API? The images?

Swatches are fetched by API calls. Initially, our plugin calls API to get Swatches data.

I show upto 5 images at a time, should I change it to 5 will that help?

I have set it up for you. Please keep it as it is.

Also doesn’t always work in incognito. Do I need to clear site caches to see the changes?

If you have a server-side cache, please, clear it from the hosting settings. I have tested it from my incognito browser mode and found everything is working fine.

Thank You

Moshe Neurath

now with your plugin I can upload an image! great!

interesting that on the product page the text shows in the box for the color but on the swatches it doesn’t.

Also if I don’t do update swatches when I make a change and try and update the post it just goes on and on loading. Is this what is meant to happen, do I have to save the swatches separately? see attachments

Hakik Zaman

Hi Moshe,

do I have to save the swatches separately?

It depends on your needs. If you want a different behavior for the same attribute, then you can set different settings and save the swatches separately from the Swatches Settings (Product Edit Page).

see attachments

Unfortunately, the attachments were not attached properly. You can upload your screenshot here: https://paste.pics/ and post the screenshot link using this ticket reply box.

Thank You

Moshe Neurath

The site has definitely slowed down since I added the plugin.

It product pages take another second to load.

Could this be the API calls? I was using the free version before and it was faster.

I want to use the pro version but it is making the site too slow, what can I do to speed it up?

Hakik Zaman

Hi Moshe,

Could this be the API calls? I was using the free version before and it was faster.

Is it slowing on the archive or single product page?

If it is an archive page, it is very normal. Without our plugin, your site will not display swatches on the archive page. So, it is very normal to be faster without swatches.

If it is a single product page, how many approximate variations do you have with the products?

Thank You

Moshe Neurath

Right, so that is more then without the plugin.

Then the page speed is about 2.70/3.00.

Is there a way to speed it up? Customers were complaining the site is too slow even before I added the plugin!

Would it help if I load less swatches on the archive pages eg. just colors for some of the products (not the size swatches) or will it make no difference, just having the plugin activated takes up speed?

Or if I didn’t do the swatches on the archive page at at all and just used the plugin for the color/image feature for the same attribute?

 

Also, an important issue, I have a min-quantity field but it is not working if I do ‘add to cart’ on the archive page. Even on checkout it doesn’t run the quantity check. I need this feature.

https://paste.pics/053cc6d6e8c478a40849bd4872fb9cf6

code in functions.php
// Add cart validation for min QTY
function min_qty_product_date_validation( $passed ,$product_id, $quantity, $variation_id = ”) {

    $not_cart_able = false;  

$qty = get_post_meta($product_id, ‘product_minmum_qty’, true );

$var_qty = get_post_meta($variation_id, ‘_hy_vari_min_qty’, true );

$product = wc_get_product($product_id);

$type= $product->get_type();

if($type == ‘grouped’){

$item_in_cart = check_product_variation_in_cart($product_id);

if ($qty && $quantity < $qty && !$item_in_cart) {

$not_cart_able = true;

}

}else if($type == ‘variable’){

$item_in_cart = check_product_variation_in_cart($product_id,$variation_id);

if($var_qty){

$qty = $var_qty;

}

if ($qty && $quantity < $qty && !$item_in_cart ) {

$not_cart_able = true;

}

}else{

$item_in_cart = check_product_variation_in_cart($product_id);

if ($qty && $quantity < $qty && !$item_in_cart) {

$not_cart_able = true;

}

}

add_filter( ‘woocommerce_add_to_cart_validation’, ‘min_qty_product_date_validation’, 10, 5 );

function min_qy_validation_message_function(){
if(isset($_POST[‘variation_id’]) && !empty($_POST[‘variation_id’])){
$qty  = get_post_meta($_POST[‘variation_id’], ‘_hy_vari_min_qty’, true );
if(!$qty){
$qty = get_post_meta(get_the_id(), ‘product_minmum_qty’, true );
}
}else{
$qty = get_post_meta(get_the_id(), ‘product_minmum_qty’, true );
}
echo “<span class=’min_qy_error’>Minimum quantity on this item is “.$qty.”.  Please increase the quantity.</span>”;
};

add_filter( ‘woocommerce_quantity_input_args’, ‘hygloss_woocommerce_quantity_input_args’, 10, 2 ); // Simple products

function hygloss_woocommerce_quantity_input_args( $args, $product ) {

$qty_parent = false;

$qty = get_post_meta( $product->get_id(), ‘product_minmum_qty’, true );

if($product->is_type(‘variation’)){

$qty_parent = get_post_meta( $product->get_id(), ‘_hy_vari_min_qty’, true );

if(! $qty_parent){

$qty_parent = get_post_meta($product->get_parent_id(), ‘product_minmum_qty’, true );

}

}

if ( is_singular( ‘product’ ) || is_shop() || is_category() ) {

if($qty){

$args[‘min_value’] = 1;

$args[‘input_value’] = $qty;

}else{

$args[‘input_value’] = 1;

}

$args[‘max_value’] = 1000;

$args[‘step’] = 1;

}

if(is_cart()){

if($qty){

$args[‘min_value’] = $qty;

}else if($qty_parent){

$args[‘min_value’] = $qty_parent;

}

}

return $args;

}

Hakik Zaman

Hi Moshe,

Would it help if I load less swatches on the archive pages eg. just colors for some of the products (not the size swatches) or will it make no difference, just having the plugin activated takes up speed?

No, it will not help. If you need more speed here are some recommendations from our development team:

->Nginx Cache Redis

->Object Cache

->WP Rocket

->Cloudflare

->MariaDB

->Nginx Server

->PHP 7.3+

->VPS

Also, an important issue, I have a min-quantity field but it is not working if I do ‘add to cart’ on the archive page. Even on checkout it doesn’t run the quantity check. I need this feature.

Unfortunately, the feature is not currently available.

Please send the feature request here: https://storepress.fider.io/

and ask your other to upvote it.

code in functions.php
// Add cart validation for min QTY

It is beyond our support scope if you want a feature by adding your custom code.

Thank You

Moshe Neurath

Well I would really like to use this product.

I have wp rocket on the site but it isn’t as fast as I would like.

Why do you consider a 3/4 second load good.

Does the pro version add a lot more code loading then the free version?

If I just use some swatches on the archive pages does this not save some images loading?

Also how do I take the ‘add to cart’ option off, so users can’t buy from the archive page if there are variations?

Hakik Zaman

Hi Moshe,

Why do you consider a 3/4 second load good.

The standard is 2 seconds as far as I know. When you have variations on the shop page, multiple loops run behind the scenes. So, 3-4 seconds is good in that sense.

Does the pro version add a lot more code loading then the free version?

Yes, pro has some code for multiple additional features.

If I just use some swatches on the archive pages does this not save some images loading?

As I said beginning of this reply, behind the scenes it runs multiple loops and then prints the desired swatches as per your settings.

Also how do I take the ‘add to cart’ option off, so users can’t buy from the archive page if there are variations?

Displaying an add-to-cart button is a feature of WooCommerce. You can use custom css to hide it. You can add the following CSS at Appearance > Customize > Additional CSS

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap a.button {
display: none;
}

By the way, if you think 3-4s is not good for your site, you can ask for a refund.

Thank You

Moshe Neurath

If I only want to use the feature
Product Based Swatch Customization
so I can show both color and images for the same product attribute is that an option?

Could I just have that part of the plugin without extra code being loaded for anything else?

If I only enable that feature would no other extra code be loaded or just having the plugin activated adds to the speed time?

This is the main feature I need for the plugin.

 

Hakik Zaman

Hi Moshe,

Unfortunately, I am not clear about your requirements for the last reply.

Can you please explain a bit more?

Thank You

Moshe Neurath

What I’m trying to work out is if I select on Product Based Swatch Customization will there is still be extra code running on every page that will effect site speed?

At the moment I’m noticing it slows the site a little when the plugin is activated using the swatches.

If I just use the option -Product Based Swatch Customization – will this help the speed?

Hakik Zaman

Hi Moshe,

If I just use the option -Product Based Swatch Customization – will this help the speed?

No, unfortunately, it will not help speed up your site. 🙁

Your site will speed up if you disable this option- https://paste.pics/QK1X4

But, that option is displaying the swatches on the archive/shop page.

Thank You

Moshe Neurath

That is what I’m asking.

If I don’t display swatches on the archive/shop page an I uncheck that option.

I just use the Product Based Swatch Customization option.

Will my site speed be less effected?

Moshe Neurath

Hi,

This is a great plugin but at the moment it doesn’t work for what I need for my site, I need to prioritize speed.

Please can you give me a refund.

Thanks

Hakik Zaman

Hi Moshe,

Please open a private ticket with the title “Refund“.

Add your order number and license key inside the new ticket.

So that I can send it to our Sales and Marketing team.

Then one of our teammates will respond to you there.

Thank You