Woocommerce issue

Hi there,

Having issues with images within pages created using categories/slugs in woocommerce, we were using another page builder and then switched to Cornerstone and Theme X, however previously it was fine and given they are dynamically generated, I’m curious what the issue might be. The images show up pretty large and not even equal in size. I have regenerated thumbnails and emptied cache etc, doesn’t seem to be an issue there. Can you help?

Cheers,
David

Hello There,

Thanks for writing in! Can you confirm that you are fully updated? (Theme and Plugins)

Our latest versions are:
X Theme: 5.1.1
Cornerstone: 2.0.6

You can find the latest version numbers here: (http://theme.co/changelog/) Then you can compare them to what’s installed on your site. If you find anything to be out of date, you can review our update guide.

And to assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

Regards.

Hi there,

We have a new problem with the gallery disappearing in woocommerce, i have added the following code in our child theme php;

// Remove product gallery slider and gallery zoom
// =============================================================================
add_action( ‘after_setup_theme’, ‘remove_woo_three_support’, 11 );
function remove_woo_three_support() {
remove_theme_support( ‘wc-product-gallery-slider’ );
remove_theme_support( ‘wc-product-gallery-zoom’ );
}

as before this the gallery was hovering above the main image, not below it. Now it loads up and after maybe 20 seconds it totally disappears. Do you have any advice as to what this could be, a common problem with the new update?

Thanks,

David

Hi there David,

Thanks for writing back, the most likely cause is a two-pronged issue.

When adding that code to the child theme, we’re effectively saying when you get to this part, please remove it and don’t load it.

But if that hook relies on a certain hook/piece of functionality, it could end up loading, then being removed if the hosting is slower. Though of course your actual gallery should still be visible.

Can you post a link to your site please (one of the effected pages) and we’ll take a look.

Thanks!

Hi Jack,

I’m adding the link and our credentials in a secure note.

You’ll see that the entire gallery disappears once the page finishes loading.

Please note that when running this code to remove certain elements of the product page, the gallery works normally and stops disappearing (but then we can’t use the variations selectors anymore).

remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_add_to_cart’, 30 );

Best

Hi there,

Do we need to add IP address to our hosts file to access your site? Your site is currently inaccessible from my end, it it displays a Hostgator 404 page, and the home page displays Oops, looks like the link didn't work..

Please check and let us know of how we’re able to access it.

Thanks!

Hi @Rad,

Sorry, I updated the site’s url later yesterday but have set the right redirections in place now. The link should now work properly!

Thanks in advance!

Hello There,

I was able to view your site now. I can see that you are using an older version of X (5.2.3). Could you please make sure that you are using the latest version of X and WooCommerce? And if you are using caching plugin, please clear the plugin cache too. And another thing, I noticed that you are using Autoptimize plugin. You will have to regenerate the cache for this plugin too.

Please let us know how it goes.

Hi,

I’ve just done the updates, but the issue is still here.

Hey David,

You said removing this code fixes your gallery.

remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_add_to_cart’, 30 );

The first problem I see with that code is the pretty quotes. Try changing that to regular quote.

If that does not help, you need to seek help from a third party developer to customize X.

Thanks.