Add button to AJAX cart
Popup carts, Drawer carts, Mini carts. etc
Requires knowledge of HTML and editing theme files
Some themes have an AJAX cart. These carts are not directly editable through the theme customizer. In these cases, the quote request button must be added to the AJAX cart manually by editing the theme code.
Every theme is unique, and we are unable to provide specific instructions for each theme, but the instructions below should help you understand how to add the button to an AJAX cart.
Snippet:
- Navigate to online store > themes
- Select "..." button and select Edit Code
- Use the filter files field to search for your cart pages by entering "cart" into the search field
- look for the file named "header-mini-cart.liquid", "ajax-cart-template.liquid", "cart-drawer.liquid", or something similar.
- Open the file and look for the checkout button code.
- Copy and paste the button code from above into the location you want the quote request button to show. We generally recommend inserting it just below the checkout button.
- Feel free to add additional classes to the quote request button to help style the button to match the style of your existing buttons
- Press save to save your changes
If you have trouble locating your AJAX cart template, feel free to submit a support ticket and we will help get the button added in the correct location.