Searching Inside Customers Cart to Find Product

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
  1. To get the cart info: https://www.wix.com/velo/reference/wix-stores/getcurrentcart

  2. To get the product info (in full): https://support.wix.com/en/article/velo-wix-stores-products-collection-fields

  3. 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 :grinning:

Can I query the getcurrentcart api?