in the file where woocommerce template single.php or in variable.php => wp-content/plugins/woocommerce/templates/single-product/add-to-cart/variable.php before the code

<?php do_action( 'woocommerce_before_add_to_cart_button' ); ?>

Efbi

said
over 2 years ago

Hi
Yes it's what I do but it seems it's in class-frontend-product.php that the problem is

S

Sushant Sanjay Khadilkar

said
over 2 years ago

Hi Krishna,

I also added your code but its not working from my side. I added which you have mentioned correctly.

do you have any other solution?

Thanks,

Sushant

K

Krishna Priya

said
over 2 years ago

Hi,

var src3=fancyProductDesigner.getViewsDataURL('png', 'transparent', 0.3)[0];alert(src3); //ADD THIS ALERT AND CHECK THE CONTENT OF SRC3

The above alert should show base 64 png image data. We have to add this in img src.

S

Sushant Sanjay Khadilkar

said
over 2 years ago

Hi,

I added alert but alert is not showing anything. It will be not reaching into the function.

Is it working on you end? can you share screenshot of the frontend where you have implemented?

Thanks,Sushant

S

Sushant Sanjay Khadilkar

said
over 2 years ago

Actually alert is not getting inside if(jQuery('.fpd-lightbox-enabled').size() > 0) function...so thats why it is not working, have you added code in if(jQuery('.fpd-lightbox-enabled').size() > 0) function?