Hello Velo People. I’m trying to write a code that would look inside a customers cart for a specific sku and then pull that products information such as name, price, and other descriptive things to put inside a repeater. Please help!
1 Like
-
To get the cart info: https://www.wix.com/velo/reference/wix-stores/getcurrentcart
-
To get the product info (in full): https://support.wix.com/en/article/velo-wix-stores-products-collection-fields
-
To display data in repeater: https://www.wix.com/velo/reference/$w/repeater/data
You need to combine both code and UI elements (Wix elements) in order to make it work. Not just coding.
Thanks. I’ll let you know how I get on ![]()
Can I query the getcurrentcart api?