Checkout Links For Variable Products

/your-custom-checkout-page/?add-to-cart=xxxxx&variation_id=abcde&quantity=2
Description:


Variable products require a slightly different URL structure in order to send any of the individual variations, along with the desired quantity, to your particular custom checkout page.

Use Case:

With variable products, the syntax to send any particular variation directly to your custom checkout is slightly different than simple or subscription or grouped products.

You need to add &variation_id=abcde to the end of the normal url you have copied with the LaunchFlows Direct Checkout Link Generator. For example:

/your-custom-checkout-page/?add-to-cart=xxxxx&variation_id=abcde

Where “your-custom-checkout-page” is the url of the checkout and “xxxxx” is the main id of the variable product and “abcde” is the id of the variation you want to send to the checkout.

You may optionally specify an initial quantity as well by adding this to the end of the string.

/your-custom-checkout-page/?add-to-cart=xxxxx&variation_id=abcde&quantity=2

Where “quantity=2” sends two of the variation with id of “abcde” to the “your-custom-checkout-page” url.

Example:

/your-custom-checkout-page/?add-to-cart=12345&variation_id=12346&quantity=3