Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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,
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.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025