New Customer Accounts "Buy Again" and Hydrogen #2743
Unanswered
duncan-fairley
asked this question in
Help
Replies: 1 comment 1 reply
-
hi, @duncan-fairley , looking into this. is it possible to get a link to look at? you can post here or also DM me in the partners Slack if it's more convenient |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I'm trying to figure out how to make the "Buy again" links predominately featured on new customer account cards work in Hydrogen.
Upon clicking the the "Buy Again" button I'm directed through the following sequence:
<Online Store URL>/cart/39680826867760:1?attributes%5Bfrom%5D=new-customer-accounts&storefront=true
(302)<Online Store URL>/cart?cart_link_id=HAYOxBO5
(theme redirect to Hydro)<Hydro URL>/cart?cart_link_id=HAYOxBO5
This lands the user of the Hydrogen site with an empty cart. I'm not seeing a way to resolve a cart ID (to build a cart cookie) with that ID through the storefront API. Do I need to build that logic into the liquid side :/ ?
Beta Was this translation helpful? Give feedback.
All reactions