How can I use dynamic check-out on landing pages with different variants?

Topic summary

A developer is building a landing page on Shop A to display a featured product with multiple variants and needs to implement a dynamic checkout button that redirects to a different Shopify store (Shop B).

Key Challenge:

  • Using a page template rather than a product template, so the standard product.selected_or_first_available_variant approach doesn’t work
  • Need to create a dynamic cart permalink with the selected variant ID (quantity always set to 1) that redirects to Shop B’s checkout

Technical Context:

  • Cross-store checkout implementation
  • Variant selection on custom landing page
  • Dynamic URL generation based on user’s variant choice

The question remains unanswered, seeking guidance on how to properly capture and pass the selected variant information to generate the checkout link.

Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

Hi there, I am trying to build a new (landing) page where I display a featured product with several variants and want to include a dynamic / fast check-out CTA button. The check-out should take place on another Shopify store (Shop B), so I want to create a dynamic cart permalink with the variant id selected (always having quantity:1) on Shop A that redirects to the check-out at Shop B.

Using product.selected_or_first_available_variant does not work since I am not using a product template, but a page template. Could anyone help?