How to Create a Prefilled Cart Link in Shopify
What you will achieve in this guide
Follow the feature-specific setup and testing instructions below. Check the supported pages and plan requirements before activating the feature.
Cart and checkout links prefill selected variants and quantities for campaigns or individual buyers.
How this feature works
Cart links open a prefilled cart; checkout links open checkout with the selected variants and quantities. Optional codes must already exist and remain eligible. Links do not reserve inventory, bypass validation, or automatically submit payment. Keep personal customer-prefill details out of public campaign links.
Before you begin
Open Apps > Rivio Checkout Customizer in the intended store. Prepare the cart, customer, products, address, or order needed by the example, and check the feature’s supported inputs before activating it.
Worked example: Create a cart-review link for two shirts
Example setup: Demo T-shirt, Blue / Medium variant; an existing eligible SAVE10 discount code.
Step-by-step instructions
Open Cart & checkout links and create a link named Blue shirt x2.
Select the exact Blue / Medium variant and set quantity to 2. Review the variant rather than relying on the product title.
Choose Cart link. This opens the cart so the buyer can review the items before checkout.
Enter SAVE10 only after creating and testing that code in Shopify. Leave personal-prefill fields blank for a publicly shared demo.
Save and copy the generated link. Open it in a fresh session and verify both the destination and cart contents.
Verify the result
| Test case | Expected result or verification |
|---|---|
| Generated link | The selected variant and quantity 2 appear at the chosen destination. |
| Eligible SAVE10 checkout | Shopify applies the existing code according to its rules. |
| Code expired or item unavailable | The link does not bypass eligibility or inventory checks. |
Important: For this customer-prefill article, also verify the email, address, and note fields in checkout. Use fictitious test data in demonstrations.
If the result is different
| Check | What it means / what to do |
|---|---|
| Wrong item/quantity | Review the exact selected variant and generated URL, then test a fresh session. |
| Code not accepted | Check that the code exists, is active, and is eligible for the current cart/customer. |
| Tracked campaign link differs | Test the final email/ad/social redirect, not only the original untracked URL. |
Related guides
- How to Prefill Customer Details and Discounts in Cart & Checkout Links
- How to Create Shopify Cart & Checkout Links
- How to Create a Direct Checkout Link in Shopify
Need help?
Email support@rivioapps.com with your store domain, feature name, target page, the relevant settings, and a screenshot of the actual result. Include the test cart, customer, or order details needed to reproduce the issue.
Screenshot reference
Screenshot to add: The saved settings described in this guide, with its selected conditions or scope visible.
Screenshot to add: The worked example’s actual customer result or saved Shopify record, including the relevant test inputs.
Was this article helpful?
Your feedback helps us continuously improve our setup guides and documentation.
Thank you for your feedback! Our documentation team reviews all suggestions.