(I didn’t mention anyone in the above post, so just in case.)
Hi.
Is there any possibility that you could share your ideas on this?
Core Issue:
Users are trying to pre-load Shopify carts with subscription products using URL parameters, specifically including selling_plan IDs alongside variant IDs.
Working Solution:
Phillip_Malboeu provided a functional URL structure:
https://{SHOP}.myshopify.com/cart/clear?return_to=/cart/add?items[][id]={VARIANT_ID}%26items[][quantity]={QUANTITY}%26items[][selling_plan]{SELLING_PLAN_ID}%26return_to=/checkout
Key Technical Details:
items[][] array syntax is critical for passing multiple parameters to the server%26 represents URL-encoded ampersands (&)items[][id] pattern%26return_to=/checkout to redirect to cart page instead of checkoutOngoing Challenges:
%26discount=CODE to the URL doesn’t auto-apply discount codes at checkout, even though manual entry worksThe solution is based on Shopify’s Cart Ajax API documentation.
(I didn’t mention anyone in the above post, so just in case.)
Hi.
Is there any possibility that you could share your ideas on this?