fbpx
Want To Add Extra Images Per Product Variation? Download This Free Plugin

Issue with my customiser plugin: Woocommerce Ultimate Add-on Text Preview

Mandi Venter

I submitted a ticket with the developer of this plugin: pluginrepublic.com – https://pluginrepublic.com/wordpress-plugins/text-preview-plugin/

 

Here is his feedback, can you maybe assist us with the issue:

 

Yes, you can reach out to them to see if there’s a way to disable the AJAX refresh on the product images.
If there’s a way to switch between the images using the standard way that would be great.
Any information they provide will be helpful.:”

Hakik Zaman

Hi Mandi,

Thanks for reaching out to us.

Do they have a markup that we can add to be compatible with their options?

I can see they add a markup inside the default WooCommerce Gallery.

If they have any markup or hook that helps to be compatible, we will happily add it to our plugin.

Hope to hear from you soon.

Thank You

Mandi Venter

Apologies for the late reply, I missed their reply:
“Hi Mandi,

Yes, we have these two filters: apaou_gallery_container and apaou_layer_parent

Here’s sample code snippet on your website:

add_filter( ‘apaou_gallery_container’, function() {
return ‘woocommerce-product-gallery’;
} );

add_filter( ‘apaou_layer_parent’, function() {
return ‘woocommerce-product-gallery__wrapper’;
} );

Hope that helps.

Regards,
Collins”

Hakik Zaman

Hi Mandi,

I am sorry I was unable to understand.

Do we have to add anything from our side?

If so, please ask them to share that with you.

Hope to hear from you soon.

Thank You

Mandi Venter

Hi Hakik,

 

“If they have any markup or hook that helps to be compatible, we will happily add it to our plugin.”

In answer to the above:

Yes, we have these two filters: apaou_gallery_container and apaou_layer_parent

Here’s sample code snippet on your website:

add_filter( ‘apaou_gallery_container’, function() {
return ‘woocommerce-product-gallery’;
} );

add_filter( ‘apaou_layer_parent’, function() {
return ‘woocommerce-product-gallery__wrapper’;
} );

Does this not supply you with a markup/hook that can be used to adjust your plugin for the preview text to show.

This is what they asked initially:

“to see if there’s a way to disable the AJAX refresh on the product images.

If there’s a way to switch between the images using the standard way that would be great.”

As the preview text on the variation image disappears when switching between variations.
https://myimportguy.co.za/online-retail-store/kuga-range/kuga-drinkware/travel-flask-1050-ml/

Hakik Zaman

Hi Mandi,

“to see if there’s a way to disable the AJAX refresh on the product images.

Unfortunately, we can’t disable the AJAX refresh. Because we collect additional variation images using AJAX.

I have already forwarded this to our development team. They asked for a markup if adding it makes both plugins compatible.

But after seeing the given snippet, it seems they just give you the classes to replace.

Does the snippet fix your issue? I don’t think it will work.

Hope to hear from you soon.

Thank You

Mandi Venter

It does not, only for the initial product image, but as soon as you choose a variation it disappears and even if you only choose the option to add custom text after you have chosen a variation, it does not display.

Let me check back with them.