Implementing add to favorite button in the collection template
I know there is a custom code for adding the "add to favorite button" in the collection list (#106). Is there a way to do that in the collection template instead of the collection list?
I know there is a custom code for adding the "add to favorite button" in the collection list (#106). Is there a way to do that in the collection template instead of the collection list?
Comments
1 comment
Hey MJ!
You indeed can - this script uses the slug (added via a dynamic attribute) to determine which item is being favorited, so you can do the exact same thing on the page itself!
Please sign in to leave a comment.