Use url parameters in checkout page

Hey guys, newbie here.

I wanted to ask if you can use url parameters in a checkout page? For example, mydomain.com/checkout?item=1

I have 3 items in my sales page all redirecting to the same checkout, but I have a script that captures the parameter value and checks the corresponding radiobutton in the product-list module. But the issue is that the order summary and order bump modules are not showing when I have the parameters in the url Imgur: The magic of the Internet. Without those parameters, they’re showing just fine Imgur: The magic of the Internet

Any idea how to go around this?

Thanks much!

Hi @Ice.Dragon :waving_hand: welcome to the community!

Instead of relying on URL parameters (which can sometimes break the order summary/order bump modules), I’d recommend using sessionStorage to pass the selected product/variant across pages.

That way, you don’t need to modify the checkout URL at all — and your modules will continue to load properly.

Here’s a detailed example you can follow: :backhand_index_pointing_right: Selecting products on funnel landing pages

This approach stores the chosen product in sessionStorage on the sales page and retrieves it on the checkout page, ensuring smoother functionality.

Give that a try, and let us know how it goes! :rocket: