What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

I want to add the item to the checkout page instead of adding it to the shopping cart

I want to add the item to the checkout page instead of adding it to the shopping cart

李乐
Shopify Partner
6 0 0

Hi, I want to realize such a function:

When the user buys the specified amount of products, we will give the user a gift. We've created the Buy X, get Y rule in the background. And we have developed a gift pop-up layer on the page to display a list of gifts.

In this shell layer, users can enter purchase gifts. And it has a checkout button. It will jump directly to the settlement page, and this settlement page contains free gifts, and when the user enters other discount codes in the settlement page again, I didn't want it to pass, I don't know how to do it?

I want the user to select a gift that will be added directly to the checkout page without showing up directly on the shopping cart page. I don't know how to do that.

I'm not sure if this can be done through the rest admin api, or if it can be done directly through js in the front page?

Replies 3 (3)

vixnguyen
Shopify Partner
45 4 5

Hi,

You can have a look at this doc. Your needs can be solved by using Checkout UI Extensions. But it requires you to have Shopify Plus store.

Regards,

李乐
Shopify Partner
6 0 0

我还遇到一个问题:

当我在使用rest admin checkout api 的时候, 我遇到了一个这样的问题

{
    "errors": "[API] This action requires merchant approval for write_checkouts scope."
}
这是我的返回信息.  这个时候我去后台想要开启这部分的权限. 但是我发现一个问题:
我的后台并没有这部分权限的选项, 
我在 Admin API integration 权限列表中仔细查找了很久也没有发现 read_checkout 选项.
谁能告诉我这是为什么 ?
0000000.png

 


 

很显然.  我的搜索结果是 0

李乐
Shopify Partner
6 0 0

我并不想升级为 Shopify Plus