[Support request] Block to show woocommerce categories

Home Forums Support [Support request] Block to show woocommerce categories

Home Forums Support Block to show woocommerce categories

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2363300
    Jesús

    Hello! I use generatepress pro and generateblocks. I want to show all categories in the shop page. Could I create a customized template block to show the image, description and title of each categories? Similar to how we could show products or posts using query block and elements. Thanks!

    #2363412
    Fernando
    Customer Support

    Hi Jesus,

    Are you referring to showing Product Categories in the Shop page as well? You should be able to do so in Appearance > Customize > WooCommerce > Shop Page Display. Set it to show Products and Categories.

    However, if you’re planning to add a new section with something like a Query Loop Block, what you can do in GP Premium is use a Product Category List Block and hook it to your preferred location through a Block Element. This won’t show the image and description though. You’ll need a third party plugin or custom code for that. It might be good to ask our Facebook group for suggestions: https://www.facebook.com/groups/1113359788719597

    For reference of hooks you may use in the Shop Page, here’s a link you can visit: https://www.businessbloomer.com/woocommerce-visual-hook-guide-archiveshopcat-page/

    #2363619
    Synapse

    Thanks Fernando.

    What I want to do exactly is display the categories dynamically as follows (see attached image)

    #2363636
    Synapse
    #2363655
    Fernando
    Customer Support

    Will it be just four categories? If so, rather than adding another plugin, you can do it manually. You’ll be adding the Images and description manually(not dynamically) through GenerateBlocks in a Block Element, then you can hook it to after_header for instance. Then, set it to display on Product Category Archives.

    #2363683
    Synapse

    The idea is that it is displayed dynamically. That is, when a new category is added from the administration panel, it is automatically displayed in the front end.

    #2363742
    Fernando
    Customer Support

    I see. You would need custom code or a third Party plugin for that. It might be good to ask our Facebook group for suggestions as mentioned: https://www.facebook.com/groups/1113359788719597

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.