Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
415 views
in Technique[技术] by (71.8m points)

velo - Wix CMS - Dynamic Title for Store Collections

I am using WIX store and have the below question:
I need to add a text content [BigTitle 1] available only when i choose Collection/Category

  • Dryvenner

.
When i choose another Category/Collection [ex: oppfinnelser], Big Title 1 should change to Big Title 2; so what i need is to create dynamic text content linked to each category, any advise? enter image description here

question from:https://stackoverflow.com/questions/66050518/wix-cms-dynamic-title-for-store-collections

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Your question is a bit light on the details, but I'll try to point you in some directions, and hopefully it will help.

Looks like you are on a Stores product page and you want to know what collections the current item belongs to. To do so, you can use the getProduct() function to get the ID of the current product. Then, you can query the Stores/Products database collection to get the stores collections that the item belongs to.

From there, you can use the $w() API to hide/show or change the text of headings you want to show.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...