Hello guys,
First of all THANKS FOR Wix to provide example code of Wishlist feature for Store! Here is the reference.
https://support.wix.com/en/article/wix-code-how-to-add-a-wishlist-to-a-wix-stores-site-with-code
https://www.wix.com/code/home/example/Wishlist
My problems is that since I would like to set up the wishlist feature for my own Database Collection and repeater instead of using Store Module as the example has, some function and code structure in the example wont be applicable anymore (i.e. getProduct()).
Anyone may have guidance of how possibly I can modify the example code to fit in my need? More details would be so much appreciated!!!
Thanks in advance and look forward advices from this community :)
Thanks,
Will
Hey
sure but first describe your scenario so I can think about How to use wishlist Sample in your Case.
I have the same situation I operated the page where the products appear, but I do not operate the wish list page I can not work correctly the repeater that shows the favorite elements because although it shows the number of elements that I have as favorites the repeater does not bring the image the product name or category
@Carlos Hernandez
Instead of using code like getProduct() try using wixData.query()
If you need help create a new thread in the forum.
@Wix Code Extracts I'm going to create it because I couldn't make it work completely, my problem is in the page that shows the wish list.
This works for me in the product section, with out store taking the info from database, i change: // Get the currently displayed product. product = await $w("#dynamicDataset").getCurrentItem().nombre_emp;
where "nombre_emp" is the name of product.
sorry for my bad english, am going to post my issue.
for feedback this is my issue post. https://www.wix.com/corvid/forum/community-discussion/error-in-example-code-of-store-wishlist-used-for-non-store-database-collection-wish-list-section
No one has seen my post anyone could help me?
https://www.wix.com/corvid/forum/community-discussion/error-in-example-code-of-store-wishlist-used-for-non-store-database-collection-wish-list-section