One thing I enjoyed about my previous Woocommerce setup is that I could display some information about tags. As it stands, clicking on a product tag brings us to a listing of all products with the chosen tag but I would like to include a text above the list. Adding the text in the template is the easy part, but what would be the best way to manage the tags themselves to add descriptions to them? I haven't found any apps dealing with this in the app market.
Solved! Go to the solution
This is an accepted solution.
Hello @stephdumais ,
I'm not sure you are aware about the liquid or not but for your requirement I can just share the idea rest you have to code it.
So basic idea is:
Create a settings in theme settings named it 'Tags description" or related as you want.
In the settings pass the 'key' (tag name) and value ( tag description )
e.g.
Men: Men tag description here;
Women: Women tag description here;
and so on...
Now in collection template first get the settings (Tags description) split them
Now with a if condition if settings contain the current tag. If yes display the description of the specific tag.
Thanks
Yes but every time when you add a new tag for a product you have to add it in settings too with description.
User | Count |
---|---|
494 | |
209 | |
130 | |
82 | |
46 |