Templates
Public facing portions of CartBounty like Exit Intent popup, Early capture request, WordPress recovery emails and Push notification reminders can be easily adjusted using plugin settings. However, if you require more, you can use CartBounty templates that come along with the plugin or make use of the available actions and filters.
1. Location of template files
You will find all available template files inside /plugins/woo-save-abandoned-carts-pro/templates folder. When you open these files, you will notice they all contain hooks that allow you to add, edit or remove content without the need to edit template files themselves. This method protects against plugin upgrade issues, as the template files can be left completely untouched.
2. Using templates
Please copy the template file you require to your active theme to keep your customization intact after plugin updates. You can copy them to either one of these locations:
- your_theme_name/templates/emails/cartbounty-pro-email-light.php
- your_theme_name/templates/cartbounty-pro-exit-intent.php
- your_theme_name/cartbounty-pro-exit-intent.php
Now you can edit your copied template file and it will override the CartBounty default template file.
Please note that when a new CartBounty version is released with an updated template file, you might need to replace or adjust the old template file to match the new one to maintain compatibility with the latest features of CartBounty.
When modifying Exit Intent or Early capture template files, please do not change any of the following ID values or else the plugin will no longer be able to save abandoned carts or render properly:
- cartbounty-pro-exit-intent-email
- cartbounty-pro-exit-intent-phone
- cartbounty-pro-early-capture-form
- cartbounty-pro-early-capture-email
- cartbounty-pro-early-capture-phone
3. Custom template location
If you ever need to change default CartBounty template location from WordPress active theme folder to a new location outside the theme (like if you’re using the Oxygen plugin that turns off your active theme), you can do so by following our guide here.
What’s next
You might also be interested in the following topics:
- Personalize recovery emails using dynamic content
- How to customize CartBounty using hooks
- Replace strings and translate the contents of CartBounty