Home Forums WoodMart support forum Disable showing variations for products preview (product grid in Shop)

Disable showing variations for products preview (product grid in Shop)

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #202631

    Larisa
    Participant

    Hi,

    We have variable products and the variations are shown in the product preview on the shop page.
    We struggle to find any GUI way to disable this, as a) We do not need them there & b) Variations are displayed on-top pf the product that confuses us and our customers.

    Could some one show us a snipplet for functions.php to completely remove variations from the product grid?

    Thanks

    #202674

    Hello,

    The products and the variations are WooCommerce functionality and our theme doesn’t influence them.

    Unfortunately, currently I am unable to provide a code snippet. You can try adding any third party plugin that better meets your requirements.

    Best Regards.

    #202681

    Larisa
    Participant

    Ok, fair.

    Another question: is there a way to customize a template or stile of a product block in a shop page?

    In case we can’t actually hide the variations from a product grid, we need to adjust it;s position and look.

    Regards

    #202690

    Hello,

    In our theme settings there are different styles for products on the shop page.

    You can set the product styles from Theme Settings >> Shop >> Product Styles.

    Screenshot for Clarification: https://ibb.co/zHB8qr0

    Best Regards.

    #202708

    Larisa
    Participant

    Sure, Aizaz – I do know where to change it from “front-end” but the thing is that it actually will not solve my issue.

    If you can point me to the style(s) that is(are) used to generate the product block that would be nice.
    I need to make a new template, may be a custom CSS or a hook with a filter in order to get rid of product variations.

    #202713

    Larisa
    Participant

    Ok, So I just had a chat with WooCommerce support and they confirmed the way the block is presented is a theme related. So using a standard theme will show the variations in a different fashion.

    Please, point me where the block is generated (template) so I at least can check the code.

    Regards

    #202718

    Larisa
    Participant

    Digging further in, i found that class=”attribute-label seems to be responsible for the attributes in the product container. Now the question how it is called upon Shop page generation.

    #202723

    Larisa
    Participant

    FINALLY!

    Case closed: Global CSS
    .woocommerce div.product-labels {display: none;}

    #202830

    Hello,

    We are Glad that you Solved the issue by yourself. You are Great!!!

    Your solution might be useful for someone else.

    Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.

    Have a wonderful day.

    Topic Closed.
    Best Regards.

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Disable showing variations for products preview (product grid in Shop)’ is closed to new replies.