Skip Navigation

[Résolu] Woocommerce gallery thumbs missing when using Astra Pro + Woocommerce Blocks

This support ticket is created Il y a 1 année. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Ce sujet contient 10 réponses, a 4 voix.

Dernière mise à jour par Minesh Il y a 1 mois et 1 semaine.

Assisté par: Minesh.

Auteur
Publications
#2669845
astra active, toolset woo blocks deactivated, thumbnails show.png
astra + toolset active, thumbnails missing.png

I am trying to: use the product image slider option in the Astra Pro woocommerce add-on in my single product page content template.

Link to a page where the issue can be seen: lien caché

I expected to see: one large product image with thumbnails of every product image in the gallery below.

Instead, I got: Only the first featured product image shows big on the page. There are no thumbnails under the big main image like there should be.

I have been testing for various conflicts trying to figure out what's going on. Astra Pro has three different styles of product image gallery available for woocommerce, but only the default one works as expected. The other two "slider" options only show the main image and none of the thumbnails. This happens whether the image block in my content template is set to the Toolset output or the Woocommerce output.

I have deactivated every plugin except Astra Pro, Toolset Types, Blocks, Woocommerce Blocks, and Woocommerce. I have also tested and get the same result whether I'm using the base Astra theme or my Astra child theme.

The gallery thumbs show when woocommerce blocks is deactivated, and they don't show when woocommerce blocks is active.

Info for staging site included so you can make whatever changes. As a side note, I'd love to see my login/sftp details saved to my user profile so I don't have to reenter them for every support ticket.

#2669911

Hi,

Thank you for contacting us and I'd be happy to assist.

I noticed the Astra theme offers a 'Gallery Layout' option at WP Admin -> Appearance -> Customize -> WooCommerce -> Single Product.
( screenshot: lien caché )

I changed it from 'Horizontal Slider' to 'First Image Large' and the product image thumbnails are showing now.
( screenshot: lien caché )

As for the side not, there is no feature available to permanently store the website's access details with a user profile. But, I'll pass on this suggestion internally.

regards,
Waqar

#2669921

Yes as I noted, the thumbnails on the default one (First Image Large) show up fine. But there are supposed to be thumbnails on all three gallery options, including vertical slider and horizontal slider. These thumbnails do not show up on the page when toolset woocommerce blocks is active but when I deactivate that plugin, the thumbnails show up on the vertical slider and horizontal slider options as they are supposed to. I want to use the horizontal slider setting on my website but need the thumbnails to show up like they are supposed to. In my initial post I upload a screenshot of the same product page, one with toolset woocommerce blocks active and one with it deactivated and you can see the thumbnails are only there when it's deactivated.

#2670599

Thanks for writing back.

During further testing on my website, I was able to reproduce this behavior too.

When Astra's horizontal slider option is selected, the image thumbnails don't show up on the single product page.

I've passed these findings to the concerned team and will keep you updated through this ticket.

Appreciate you brought this forward.

#2673141

Hi just checking in since it's been a week. Thanks.

#2673203

Thanks for checking in and it is still being worked on.

During troubleshooting, we've discovered that if Astra's horizontal slider option is selected and the 'WooCommerce' add-on from the Astra Pro settings is disabled, the slider continues to work in the same style with the thumbnails also showing.

But, of course, this temporary workaround will work only for someone who is not using other elements from this 'WooCommerce' add-on.

In any case, I'll keep you updated on the progress.

#2674525

Thank you, I hope it can be fixed so all the gallery options will work. I am using the woocommerce add-on to hide unnecessary/duplicate elements on my shop pages that I am already adding through my toolset archive.

#2754045

I'm wondering if there has been any work looking into this? It's still an issue and I haven't been able to find any workaround. So, the gallery on my product pages still doesn't work right.

I do use other parts of the Astra Woocommerce add-on so I can't disable it. But, that suggested workaround of disabling Astra's Woocommerce add-on doesn't actually work anyway--the "horizontal slider" option is *part* of Astra's Woocommerce add-on. Deactivating the add-on just reverts to the default woocommerce built-in gallery.

#2756392

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

Hi Ashleigh

Waqar has moved on, let me step in here.

If I understand the problem, when using Toolset to create a custom template for single products, the gallery thumbnails disappear when the Astra Pro plugin is active.

There isn't an update from the developers, so I took a closer look at this. I was able to solve that particular problem by adding the following to my theme's functions.php (or it should work as a snippet added at Toolset > Settings > Custom Code):

add_filter( 'astra_addon_override_single_product_layout', '__return_false' );

Can you try that, and check that it doesn't have any unexpected side effects.

#2761188

That snippet did make it so the default gallery option works properly now (before the flexslider wasn't initializing properly on any setting). Interestingly, the Astra customizer settings still override my settings for the image block on my content template (i.e. the customizer won't let me select more than 4 thumbnails--and that's what shows on the front end--but I have it set in the content template to have 5 on desktop. I've asked Astra about that as well.

After some more digging what seems to be happening is: the Astra Pro plugin includes alternate options for the woocommerce gallery that are created as php templates and are meant to override the default templates in woocommerce the same way as if I added a template override to my child theme. I would have expected that when I have the content template product image block set to "Woocommerce Native Output" that any files meant to override the woocommerce template php files would work. But it doesn't, and what ends up on the front end of the page is neither the full woocommerce default gallery without any customization, nor the astra override template.

#2779604

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Nigel is on Vacation and let me step in here.

If your original issue is fixed, I request you to close this ticket and open a new ticket with every new question you may have. This will help other users searching on the forum as well as help us to write correct problem resolution summery.

#2780541

Marking resolved because the original issue of no thumbnails is fixed, and not having access to the slider options is a separate issue.