The Thrivecart checkout form can be presented in different ways: as a dedicated page, through a popup, …

Thrivecart Cart Types

For the Popup option, you can pass it with pre-gathered data.

Below, you find some javascript code to call before the code to show the popup is triggered.

Pass a coupon value
Use Case:
Say it’s BlackFriday and you want to make it super easy for your audience by auto-applying that specific coupon code.

 jQuery("a[data-thrivecart-account='my-checkout-cart']").attr("data-thrivecart-querystring","coupon=ONETIMEDEAL");

Prefill with “Customer Email” value
Use case:
It could be that you already gathered the email on a other page and you don’t want to let your use enter is twice.
E.g. it might be a good idea to create a two step wizard to promote micro-commitments (finally to get more conversions).
Some (personal) data is captured in the page itself as a first step. And the rest (payment data) is to be gathered in the popup itself.

jQuery("a[data-thrivecart-account='my-checkout-cart']").attr("data-thrivecart-querystring","passthrough[customer_email]="+email);

In the image above, a form is presented to the user in a sales page and the email is passed to the Thrivecart Payment popup.