square connect - Add to Cart Programatically -


our shop sells ingredients , supplies, it's hassle our customers scroll through our entire huge inventory few things need or click of our pre-built recipes.

i'm trying make script add items programmatically on our website, i'm running problems. since squareup uses cookies store cart, can't send data cart because of cross-domain access. i've tried using embedded iframe menu, still doesn't let me filter results or add script "hack" mouseclick on items add recipes.

i don't know if belongs in connect api tag, last place figured me. i've read docs , saw billing wasn't available, i'm adding items cart. think have sort of ?cart-[shopname]= query appended "checkout" link. there, use connect api find item/variation codes , create json markup added cart's cookie.

basically, problem know of no way add items cart programatically.

we keep using squareup, we'd more sales magento or shopify since can filter results , programatically add entire recipes cart.

unfortunately there isn't way you're trying accomplish through square online store. it's intended turnkey solution; there are't public apis can use manipulate programmatically. you've discovered, browser prevent manipulating online store's cookies or calling backend apis due cross-origin policies.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -