Shopify Cart Redirection Setup - Can This Really Work Long-Term?

Status
Not open for further replies.

Marocostyle

Registered Member
Joined
Nov 3, 2025
Messages
54
Reaction score
18
Hi everyone,

I've set up a system to redirect users from Store A to Store B, automatically recreating the cart on Store B. (I want to sell replica ) Here's the breakdown:
  • Store A (Showcase): Displays products with brand names and visuals to attract customers. Payment processing is NOT enabled here.
  • Store B (Checkout): Handles payments with generic product names and no branding. It has a generic bracelet store theme.
How it works:
  • When a user clicks the checkout button on Store A, a script captures the cart contents.
  • Products are mapped using a JSON file that links Store A's SKUs to Store B's variant IDs.
  • A POST request is dynamically created and submitted to Store B, recreating the cart with the correct product IDs and quantities.
  • The user is redirected to Store B's checkout page.

My questions:

  1. Are there additional measures I should take to secure and maintain this process?
  2. Has anyone implemented a similar cart redirection between Shopify stores?
I'd appreciate your insights and advice!
Thanks!
 
Hi all

Small update since my first post:


After some digging, I realised my initial setup wasn’t ideal from a traceability/privacy point of view.


In the first version, the cart POST was done directly from Store A’s theme files to Store B.
That means the request hitting Store B included Origin and Referer headers pointing to Store A’s URL.
In other words, Shopify could technically see that the checkout/cart creation was coming from another Shopify store (the “showcase” one).


To fix that, I rebuilt the flow around a small bridge / mini-SaaS:


  • Store A now intercepts the “checkout” button and sends the cart (SKU + qty + attributes) to my own bridge endpoint (hosted on official.exemple.site).
  • The bridge runs on Railway and uses Shopify’s Storefront API to create the cart/checkout server-side on Store B, using a mapping.json file (SKU → variant ID / GID).
  • The bridge then returns a 302 redirect to the checkout URL on Store B.
  • I’ve also set strict headers on the bridge (Referrer-Policy: no-referrer, CORS limited to Store A, etc.) so that from Store B’s point of view, there’s no Referer/Origin leaking Store A’s domain anymore.

So the logic is the same (A → B with mapped SKUs), but the sensitive part is now handled by the SaaS layer instead of directly from Store A’s theme, which avoids exposing Store A’s URL in the headers when the checkout is created on Store B.
 
Last edited:
Hi everyone,

I've set up a system to redirect users from Store A to Store B, automatically recreating the cart on Store B. (I want to sell replica ) Here's the breakdown:
  • Store A (Showcase): Displays products with brand names and visuals to attract customers. Payment processing is NOT enabled here.
  • Store B (Checkout): Handles payments with generic product names and no branding. It has a generic bracelet store theme.
How it works:
  • When a user clicks the checkout button on Store A, a script captures the cart contents.
  • Products are mapped using a JSON file that links Store A's SKUs to Store B's variant IDs.
  • A POST request is dynamically created and submitted to Store B, recreating the cart with the correct product IDs and quantities.
  • The user is redirected to Store B's checkout page.

My questions:

  1. Are there additional measures I should take to secure and maintain this process?
  2. Has anyone implemented a similar cart redirection between Shopify stores?
I'd appreciate your insights and advice!
Thanks!
“Good discussion, following.”
 
  1. Has anyone implemented a similar cart redirection between Shopify stores?

Last I checked you can't run server side scripts on shopify? If you do this in the front end then it's not going to work
 
Last I checked you can't run server side scripts on shopify? If you do this in the front end then it's not going to work
In my first version I was doing everything from Store A’s theme with JavaScript.
On a pure technical level it worked: the cart from Store A was correctly recreated on Store B and the user was sent to B’s checkout.

The problem, is that the request hitting Store B included the ''Origin'' and ''Referer'' from Store A, which isn’t great from a traceability/privacy point of view. That’s why I changed the setup.

Right now Store A only sends the cart data (SKU + qty) to an external bridge I host on Railway. The bridge then creates the checkout server-side on Store B via the Storefront API and returns a 302 redirect to B’s checkout URL. So the sensitive part is no longer handled directly in Store A’s front end.

I haven’t actually launched any stores or processed real orders with either version yet, I’m still in the testing phase. Once I have some live data and real sales I’ll come back and share an update on how the second method performs in practice.

If anyone sees a weak point in this flow or has suggestions to harden the setup, I’m definitely open to feedback.
 
Hello,


I am currently using a system similar to yours. I operate with two integrated stores:


  • Store A on WooCommerce
  • Store B on Shopify, which is responsible for payment processing

The flow works as follows:
the user adds products to the cart on Store A (WooCommerce) and, after clicking “Proceed to checkout”, is automatically redirected to the Shopify checkout, where all cart items are correctly loaded for payment completion.


At the moment, everything is working properly. I only experienced some identity verification procedures, which is normal for newly created Shopify stores.


This past week, we achieved approximately $10,000 in revenue, with no operational issues, blocks, or payment processing problems.


I would like to know how the development of your system is progressing and what stage it is currently in.
 
Hello,


I am currently using a system similar to yours. I operate with two integrated stores:


  • Store A on WooCommerce
  • Store B on Shopify, which is responsible for payment processing

The flow works as follows:
the user adds products to the cart on Store A (WooCommerce) and, after clicking “Proceed to checkout”, is automatically redirected to the Shopify checkout, where all cart items are correctly loaded for payment completion.


At the moment, everything is working properly. I only experienced some identity verification procedures, which is normal for newly created Shopify stores.


This past week, we achieved approximately $10,000 in revenue, with no operational issues, blocks, or payment processing problems.


I would like to know how the development of your system is progressing and what stage it is currently in.
Hello brother,


Thanks for your detailed message.


On my side, I’ve already processed around $4,000 with my setup and so far I’ve had zero issues (no holds, no blocks).


I also recently plugged in a friend of mine by creating a small SaaS bridge for him.
I’m waiting for more detailed feedback from his side, but for now everything seems to run smoothly.


I’m curious about your current stack:

are you using a middleware / SaaS layer between WooCommerce and Shopify to handle the redirection and cart reconstruction, or is the redirection done directly, without any intermediary service?


Would be interested to know how you’ve implemented it on your side.


Best,
 
Hello brother,


Thanks for your detailed message.


On my side, I’ve already processed around $4,000 with my setup and so far I’ve had zero issues (no holds, no blocks).


I also recently plugged in a friend of mine by creating a small SaaS bridge for him.
I’m waiting for more detailed feedback from his side, but for now everything seems to run smoothly.


I’m curious about your current stack:

are you using a middleware / SaaS layer between WooCommerce and Shopify to handle the redirection and cart reconstruction, or is the redirection done directly, without any intermediary service?


Would be interested to know how you’ve implemented it on your side.


Best,
Hey,


I’m currently using this tool by renting it from a friend, so I can’t really go into deep technical details about how it works internally.


At a high level, it operates like a WooCommerce plugin, which is installed directly on the store and handles the integration with Shopify. All the logic and communication between the two platforms are managed through this plugin.


I do have access to the code and integration files, though, in case you’d like to take a look.


I’d also be interested in testing your system if that’s possible on your side.


Let me know — happy to explore this further.


Best,
 
Status
Not open for further replies.
Back
Top