Sales Channel not attributed to order using permalink with storefront=true

Sales Channel not attributed to order using permalink with storefront=true

David_Pitzel
Shopify Partner
1 0 0

Hello,

 

I have a question about enabling read_only_own_orders scope for a review.

 

I noticed that when I use our permalink with “storefront=true” my orders are not attributed to our sales channel. If I go directly to checkout it does. We would like to send the user to the Shopify merchants cart instead of directly to checkout but it seems that this requirement will not allow us to do that. Is there a way to attribute the order to our sales channel when using “storefront=true”?

 

Example:

This is the permalink we would like to use to send the user to a cart

<shop>/cart/xxx:1?access_token=xxxxx&storefront=true

(This does not work, the channelInformation on this order has "Online Store" and "Shopify" as the developerName)

 

If we remove storefront=true it works:

<shop>/cart/xxx:1?access_token=xxxxxx

(This works and provides sales channel info from our channel)

 

I am assuming that read_only_own_orders will constrain us to only see the second order. Is there no way to attribute an order to our channel using storefront=true?

 

Thanks,

Reply 1 (1)

DavidPitzel
Shopify Partner
2 0 0

In case anyone is interested.

 

If you send to the cart on a permalink using "storefront=true" it will not attribute the resulting order to your app even if you send the "access_token". You have to send it directly to checkout to do that. We had to change ours to go directly to checkout instead of cart. We found this through testing once the read_only_own_orders scope was applied. If there is an additional param that can be passed to accomplish this, I don't know, we never received any information from Shopify on the subject so we assume it is not possible.