Elementor is a very popular WordPress plugin for building pages and theme and using Elementor Pro, you can easily trigger your popup checkouts to appear on your site.
Please note that the free version of Elementor doesn’t support the ability to add custom attributes to your elements which are needed for this to work.
To get started, you first need to create your element that will be used to launch the modal cart, that could be a button, image, or something that can have a link attributed with it.
Step 1 – Set the link text
For this field, under the ‘content’ tab, you’ll want to leave this blank. Do not enter anything in this field.
Step 2 – Set the CSS Classes
Under the ‘advanced’ tab you need to set the CSS Classes field to include
Step 3 – Set the Attributes
Under the ‘advanced’ tab again, you’ll need to head down to the Attributes section. Here we set the details about your ThriveCart Account (subdomain) and the Product ID that we’re requesting to load the popup cart.
Your ThriveCart Product ID can be found in the address bar of your browser when editing a product or by looking at the embed code for the modal cart.
Simply copy and paste the above into this field and replace ‘account’ with your subdomain and the product ID ‘1’ with your own product ID
Note: depending on the version of Elementor, you may need to format the above information as below:
Step 4 – Adding the ThriveCart script to the page
Finally, the last thing we need to do is add the ThriveCart script to your page which allows the above to all work.
You’ll need to use a Custom HTML element on your page to add the script and then add the following code to your HTML widget.
<script async src="//thrivecart.com/embed/v1/thrivecart.js"></script>
Step 5 – Save your changes
Congratulations you’ve not set up your Elementor button/image/etc to launch your modal cart for ThriveCart.