Home Forums WoodMart support forum Product Category Not Using Layout Template

Product Category Not Using Layout Template

Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #690088

    I have created a layout for a woocommerce category and used the Conditions to select only those products in a particular category, but the layout is not being used by the category.
    The slug for both category and layout page are the same .
    How do you associate a layout page with a category ?
    I have other category / layout pages that work fine.

    #690229

    Hung Pham
    Participant

    Hi gardenadventure.co.uk,

    Thanks for reaching to us.

    To assist you in the best possible manner, I kindly ask that you please provide me temporary wp-admin info (wp-admin URL, username, password) to the Private Content area, this will allow me to thoroughly investigate and address your concerns more efficiently.

    Regards,
    Hung PD

    #690245

    Sure, will do.
    This url is also not behaving :
    https://logcabinkits.co.uk/cabins-under-2-5m

    #690514

    Hung Pham
    Participant

    Hi gardenadventure.co.uk,

    Thanks for your patience and details.

    Please allow me to explain: The custom layouts’s conditions applied to specific terms / products it also means Product Category will use default layout.

    So, you need to build custom general layout for Product Categories only.

    Regards,
    Hung PD

    #690526

    Thanks – but sorry, I don’t understand your reply ?
    Can you try and explain in a different way

    #690723

    Hung Pham
    Participant

    Hi gardenadventure.co.uk,

    Sorry for my bad.

    I will try to explain it better: I checked the Conditions, and figured out these applied to specific terms, such as: attributes or tags, etc…

    So, if you want to build custom layout for Product Categories only, you just need to set Conditions to Product Categories only.

    Regards,
    Hung PD

    #690768

    Ah ok, that makes sense – but then how does a layout template pick up only one category ?

    #690770

    And another question – if you look at the settings for this url :
    https://logcabinkits.co.uk/garden-offices
    You will see that the conditions are “Product Term” = “Garden Offices”
    In Layouts, the title is “Single Cat – Garden Offices” with the slug “product-archive-offices” and yet in the Categories settings, the slug for Garden Offices is “garden-offices” !!

    #690972

    Hung Pham
    Participant

    Hi gardenadventure.co.uk,

    Thanks for your patience.

    Please allow me to explain: You see the slug because Layouts is also Custom Post Type, so it has its own slug. It means: https://ibb.co/j9p7r6nZ

    When you set Conditions, it will be applied to Product Categories – which part of WooCommerce. So, you need go to WooCommerce > Products > Categories > edit the category to change the slug https://ibb.co/N69m0DG9

    Regards,
    Hung PD

    #691101

    But all the slugs for an individual layout and category align – Some category pages work as intended, others don’t and use a generic layout template

    #691282

    Hung Pham
    Participant

    Hi gardenadventure.co.uk,

    Your question is a bit unclear to me. Please describe in more details or or your desired goal, this will allow me to thoroughly investigate and address your concerns in a more efficient.

    Best Regards,
    Hung PD

    #692162

    I have a product category with the slug “multi-room-log-cabins”
    In layouts, I have a page that selects these products by conditions, slecting product cat. This too has the slug “multi-room-log-cabins”
    Other pages/categorys are set up in the same way and work correctly, but for some reason, this page picks up another template from somewhere that I can’t work out.
    The correct layout should look more like this page : https://logcabinkits.co.uk/garden-log-cabins

    #692172

    Artem Temos
    Keymaster

    Hello,

    As I can see, you have a layout named room which has an appropriate condition to be displayed on this category and works correctly. Could you please clarify what is wrong with it?

    Here are screenshots:

    https://gyazo.com/6cee2ae41a8aa65f48ecef5fa1992a5b
    https://gyazo.com/3b7b7f304ec13408b66321719b176f7a

    Kind Regards

    #692256

    Excellent – that has sorted that one !
    (have turned “room” page to off)
    But now this page is returning a 404 :
    https://logcabinkits.co.uk/room-three-multi
    I can’t see why this is hapening

    #692312

    Artem Temos
    Keymaster

    Hello,

    Could you please clarify what this page is and where you got the link to it?

    Kind Regards

    #692346

    room-three-multi
    This is the slug from the layouts page :
    Room Three Multi

    #692350

    Artem Temos
    Keymaster

    Layout is not a page that can be opened directly. It’s not publicly accessible at all. So, using its slug, you can’t create a custom URL on your website. Instead, you should open the shop and category pages to which you applied your Layouts using conditions.

    #692355

    So how do I showcase all products that have a product term (Tax:pa_rooms) of “3”
    In my layouts page, I would have set this up in Conditions ?

    #692356

    Artem Temos
    Keymaster

    You can open this term archive using the following URL website.com/rooms/3.

    And then, you need to apply a special condition for the desired layout to be applied to this page.

    #692357

    OK, that’s starting to make sense – thanks.
    But how do I “apply a special condition for the desired layout to be applied”

    #692510

    Artem Temos
    Keymaster

    You can apply this condition in WoodMart -> Layouts -> edit conditions for the layout.

    #692541

    Sorry, that doesn’t make sense ?

    What layout is being used currently for a url like this : website.com/rooms/3

    How do I force a url like this to use a different layout ?

    #692543

    Artem Temos
    Keymaster

    The page generated by WooCommerce with this URL displays all products with the term “3” for the taxonomy “rooms.” To apply your custom layout for this term, you simply need to set an appropriate condition for that specific layout.

    #692546

    Ah, got it !!

    #692558

    Artem Temos
    Keymaster

    OK, great. Please let me know if you have any other questions I can help you with.

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