Home › Forums › WoodMart support forum › Current categories in tabs product element
Current categories in tabs product element
- This topic has 9 replies, 2 voices, and was last updated 4 years, 3 months ago by Elise Noromit.
-
AuthorPosts
-
August 27, 2020 at 6:21 pm #221728
arauzobrothersParticipantHello,
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.August 27, 2020 at 9:23 pm #221762
Elise NoromitMemberHello,
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
August 27, 2020 at 10:12 pm #221771
arauzobrothersParticipantHello,
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.
August 28, 2020 at 6:13 am #221811
Elise NoromitMemberHello,
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
August 28, 2020 at 2:01 pm #221915
arauzobrothersParticipantHello,
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.August 28, 2020 at 8:35 pm #221962
Elise NoromitMemberHello,
Unfortunately, there is no option. You can set the category and it will be shown.
Best Regards
August 30, 2020 at 7:34 pm #222266
arauzobrothersParticipantAre 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/2ca153210aeaa23f2e6272bb00754fdbPage of category “clavier”
https://gyazo.com/16642dca93610d9bec123cfbff97f866August 31, 2020 at 11:09 am #222405
Elise NoromitMemberHello,
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
August 31, 2020 at 3:18 pm #222515
arauzobrothersParticipantHello,
I don’t think the site I send you use custom page, they use the woocommerce page category.
August 31, 2020 at 9:19 pm #222558
Elise NoromitMemberHello,
The screen you show is not a shop or category page. This page is custom with the content.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register