Home Forums WoodMart support forum Brand filter URL showing ID instead of slug

Brand filter URL showing ID instead of slug

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #718835

    jd009
    Participant

    Hello Team,

    I am using the Woodmart theme on my website and noticed a difference between your demo filter URLs and my website URLs.

    Your demo URL:
    https://woodmart.xtemos.com/furniture2/shop/?filter_brand=enza-home

    My website URL:
    /shop/?filter_product_brand=56

    On my website, the filter parameter is showing the brand ID instead of the brand slug.

    I would like to achieve the same URL structure as your demo, where the brand slug is used instead of the numeric ID.

    Could you please guide me on:

    1. How to configure the brand filter to use slugs instead of IDs
    2. How to change filter_product_brand=56 to something like filter_brand=brand-slug
    3. Whether this requires a specific Woodmart setting or plugin configuration

    Thank you.

    #718880

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Please use the WoodMart Product Attribute “Brand” instead of the product brand system.

    When you use the attribute-based brand, the filter will generate slug URLs and will work the same as our demo site.

    Here is the guide: https://xtemos.com/docs-topic/product-brands/

    Best Regards

    #718938

    jd009
    Participant

    Respected,

    I didn’t change anything in the theme functionality. I only imported the demo theme and removed some unwanted sections.

    The brands were already imported using the taxonomy from this page:
    wp-admin/edit-tags.php?taxonomy=product_brand&post_type=product

    While adding products, there is already a Brand checkbox available, and on the product edit page there is also a Brand selection section in the right sidebar.

    If you are suggesting that I should use Attributes for brands instead, then I would need to:

    * Select the brand twice
    * Create and maintain the same brand names again inside Attributes

    Currently, on the customer side, we are displaying:

    * A small brand image beside the product name
    * A brand description at the bottom based on the taxonomy

    and one more thing, why was this “brand attribute” functionality not imported during the demo import if the theme requires it?

    #718968

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    I checked this on our test site by importing the same demo, and I can confirm that the demo uses the WoodMart “Brand” attribute system for the filter URLs.

    But if you want the filter URLs to work like the demo (filter_brand=brand-slug), you need to create and use the Product Attribute “Brand” and then set it in:

    Theme Settings > Shop > Brands

    After assigning the Brand attribute there, WoodMart will use that attribute across the theme filters and generate slug-based URLs like the demo site.

    Best Regards

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