Woocommerce Shortcode Single Category or Single Product not showing

Hi,

I wanted to use the shortcode Single Category or Single Product of woocommerce on my x-theme front page (renew stack) however nothing is showing at the front page. Remains blank. Single page form woocommerce is working fine however product category does not show any products even when the category is clearly selected at the product.

Shortcodes used:
[product_category category=“tll-ticket”]
[product id=“255”]

Any idea what the issue could be?

Hi @LavanTerny,

Thank you for reaching out to us. There could be multiple factors, please check for the following first:

  • Make sure you’re using the category slug instead of category name for the product_category shortcode.

  • Make sure you’re using the correct ID of your product.

  • Paste your shortcode in Classic Raw Content element in Cornerstone instead of Text element.

I tested both of your shortcodes in a page and they both work fine. Let us know how this goes!

Hi, thanks for your reply.

I checked verything and all is fine. Even changed the slug to verify. But nothing is showing. I checked as well the product single page and this one is active. Cant put more then one screenshot so can only post one here.

Brgds

Olivier

Hi Olivier,

I tried those shortcode, with my own ID and slug and it works just fine. Though, I couldn’t do initial troubleshooting since its behind a maintenance page. Would you mind providing your admin login credentials so we could directly check it?

Thanks!

Hi sure, will include in secure note

Hi @LavanTerny,

You have placed it like this,

[product_category category="tll-ticket]
[product id="255"]

It should be like this

[product_category category="tll-ticket"]
[product id="255"]

And based on your existing products and category, it should be like this

[product_category category="tllticket21092019"]
[product id="282"]

I added it on your page and it works, please check it. And the reason why product 255 isn’t working is because it’s hidden

Please change it to visible and it will be displayed too.

Thanks!

Hi, thanks! I changed it to visable but it changes back automatically to invisable. Any idea how this can be?

Brgds
Olivier

Hello Olivier,

I have tested the same visibility option in our local testing servers and we could not replicate the issue. We can change the changes from our end. In your site, no matter what we do the setting will always remain hidden. This could be caused by a 3rd party plugin. You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

If the issue still exist, please re install X theme and Cornerstone. There might be some files that were corrupted. You can review our update guide and see the Manual Update section to re install X.

Please let us know how it goes.

Hi, ok will test it out. Ill come back with feedback. Thks for support.

You’re welcome, @LavanTerny.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.