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.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024