Users love to use tag product (categories+brand, categories+brand+color) for quick access to all products with such characteristics. But tag woocommerce very long boot. Is it possible to do shortcode with FWW?
Something like this [product_cat pa_brend] this shortcode displays the terms related to a product on the product page, the customer can click a term and all products with the same characteristics will be displayed.
Shortcode attribute FFW on the product page
terzalova shared this feature
April 10, 2019
July 27, 2019 @ 12:24 pm
As I understand it, this will list ATTRIBUTE NAMES based on filters in the shortcode, or with no filters – e.g. show all brands, show all colours, show all sizes etc.
What else would then be displayed?
e.g. Colours – White, Blue, Black etc
* White example – could show count of white products, but should it also show a break-down of category counts or attribute counts that are in white?
Could show: White (1,200) or it could be White with an attribute image, then a list of top categories underneath, e.g. Shirts (75), Jeans (2), Blazers (17) etc
That would mean the shortcode would need to take a few params:
1. Attribute to show
2. Filters for the attribute
3. Attributes/category to group by in the attribute description (e.g. category above for shirts, jeans, blazers etc)
Another example:
Brand: Adidas, Nike, Puma
Filter could be Men, Women, Children etc in the shortcode.
Dimension would probably be category, but could instead be Colour – if it were colour, you could have the filters of Men’s Shirts:
Adidas: White (17), Blue (5), Green (3)
Nike: White (25), Blue (7), Green 2) etc
Presumably pagination would be required? Because some shops have a lot of attributes. Although maybe just the top X would suffice?
What else am I missing?
Does this relate to the Woo Brands functionality?
July 27, 2019 @ 1:59 pm
This would be great for a long tail internal link building, but should be done with anchors and prefix and postifx.
e.g. colour + category (attribute images and product_cat_thumbnails would be nice)
Black (url: /filter/black/)
Black Bags (38), Black Coats (20), Black Jackets (8 – url: /product-category/jackets/black/)
White
White Shirts (75), White Jeans (2), White Blazers (17)
etc.
e.g. gender + category
Men (url: /filter/men/)
Man Bags (38), Man Coats (20), Man Jackets (8 – url: /product-category/jackets/man/)
Women
Women Shirts (75), Women Jeans (2), Women Blazers (17)
I think there is no need for pagination, as we can create a few pages with this shortcode, but definitely all of the attributes should be listed, just don’t add archives with fewer than X products: https://www.wpintense.com/suggestions/noindex-tag-based-on-count-of-the-products-in-a-loop/.
Woo Brands is no longer needed.
BTW. You can change the status of this request to completed: https://www.wpintense.com/suggestions/add-auto-generated-h1-tags-for-cats-filters/
July 27, 2019 @ 5:07 pm
Any chance this will be available in a near future? I hope you come back to writing the dev diary.
August 23, 2019 @ 12:27 pm
What is the best way to achieve this – a custom sql query or native wp functions like:
https://wordpress.stackexchange.com/questions/254340/count-number-of-posts-which-exist-in-2-taxonomies
https://wordpress.stackexchange.com/questions/23995/query-multiple-taxonomy-and-show-post-count
July 27, 2019 @ 2:21 pm
A little more advanced version where you can define two attributes + category:
colour + brand + category = Black Nike Shoes with the url: /product-category/shoes/black/nike
I think that nobody will use more than two attributes.
July 27, 2019 @ 5:38 pm
This would be great.
To be able to filter as you’re now able to in the product categories, on a brand/merchant level
So pa_brand is selected, all the relevant categories. I.e
Pa_brand – Nike
Categories – T-Shirts – Hoodies – Joggers
It would be also useful to be able to do this on a merchant / store level, a store being ASOS
Pa_asos – Asos
Categories – T-Shirts, Hoodies, Joggers
August 5, 2019 @ 2:21 pm
We have a bug on our site..
If you visit here – https://instylr.com/merchant/urban-celebrity
And filter for example via brand on the left – https://instylr.com/filter/urban-celebrity/11-degrees/
This should filter the brand 11 Degrees within the Urban Celebrity archive, however it loads up 11 Degrees across the whole site, so any merchant that sells the brand 11 Degrees is brought up and displayed in the results.
It also occurs here https://instylr.com/filter/asos/adidas/.
Any ideas?