Shopify: Pass values from non-Shopify site to Shopify Checkout and get URL

浪尽此生 提交于 2021-02-11 15:05:24

问题


I have a static (non-Shopify) HTML and JS website with a shopping cart where its functionality is carried out using JS and Jquery. I need to pass my cart values to Shopify and take the user directly to the Shopify Checkout page when user clicks on the checkout button on my site. I need to pass cart values to Shopify and load the checkout page on the browser. How can I do this? I'm new to Shopify and I need some guidance on how to do this.


回答1:


If you have access to variant ids and quantities in the cart, you can use a permalinks for this purpose. Example - http://yourstore.com/cart/70881412:1,70881382:1

More details here - https://community.shopify.com/c/Shopify-Design/Cart-Use-permalinks-to-pre-load-the-cart/td-p/613702



来源:https://stackoverflow.com/questions/65038747/shopify-pass-values-from-non-shopify-site-to-shopify-checkout-and-get-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!