Home Forums WoodMart support forum Product Category Not Using Layout Template

Product Category Not Using Layout Template

Viewing 10 posts - 1 through 10 (of 10 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
    Keymaster

    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
    Keymaster

    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
    Keymaster

    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
    Keymaster

    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

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