Home Forums WoodMart support forum Current categories in tabs product element

Current categories in tabs product element

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #221728

    arauzobrothers
    Participant

    Hello,

    I would like to know if we can use a variable to choose the same categories as the actual watching page in the element tabs product.

    On my woocommerce shop if I m in categorie A : it’s display all products of this category.

    I would like to add a products tabs who select best sellers & discounted products of the same category as the page.

    So if I watch page of products of category A I want my products tabs display products of category A and if the page is the category of products B the tabs should display the products of category B.

    It’s the shop page, so it’s the same page everytime.

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #221762

    Hello,

    You can implement that by means of AJAX Product Tab, you will specify the category and sales or featured or new or product by ID related to this category only. You will find this element in WoodMart tab of the WP Bakery page builder. https://xtemos.com/docs/woodmart/shortcodes-2/

    Best Regards

    #221771

    arauzobrothers
    Participant

    Hello,

    I m using elementor, I think I have explain it bad.

    I have the widget element, but I don’t want add static category or product ID. I want use this widget on the Shop page and I want the product category of the widget is Dynamic, that means If I visit category of plush I want the widget show the product of category plush. If I visit shirt I want it show shirt.

    #221811

    Hello,

    The Woocommerce widgets work in the Sidebar only. You need to add the widgets into the Shop page widget area in Appearance > Widgets. In any other places, widgets would not work.

    Best Regards

    #221915

    arauzobrothers
    Participant

    Hello,

    This is not what I ask,

    I use custom page builder for making the shop page (Archives products)

    => When I add widget like Carousel products we can choose products id or category and I would like the dynamic current category like a variable {currentcategory} instead of choosing one category or products list.

    Example :
    1. I visit page of products category (It’s shop page, it’s will show me only T-Shirt) (T-Shirt) /category/shirt
    => I want the element carousel product show me the product of this category.

    2. If I visit the same page but with category of Shoes /category/shoes
    => I want the element carousel product show me the shoes only.

    #221962

    Hello,

    Unfortunately, there is no option. You can set the category and it will be shown.

    Best Regards

    #222266

    arauzobrothers
    Participant

    Are you sure ? Because I saw a site build with woodmart who do this :

    When we visit the products page categorie of “souris”,

    There is a ajax tabs products which display only “souris” and if you change category it’s change for the product of this category.

    Page of category “souris”
    https://gyazo.com/2ca153210aeaa23f2e6272bb00754fdb

    Page of category “clavier”
    https://gyazo.com/16642dca93610d9bec123cfbff97f866

    #222405

    Hello,

    You need to create a custom page for each category. Then add and configure the Product Grid element and show the products from a certain category. https://xtemos.com/docs/woodmart/faq-guides/product-grid-carousel-element/

    Please note it would be a custom WP page not Woocommerce product category page. The Woocommerce attribute filters, Product category widget would not work in such page.

    Best REgards

    #222515

    arauzobrothers
    Participant

    Hello,

    I don’t think the site I send you use custom page, they use the woocommerce page category.

    #222558

    Hello,

    The screen you show is not a shop or category page. This page is custom with the content.

    Best Regards

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