The Cart Recovery URL is a property included in the tag “Current Cart Status”. This field stores a URL in the contact's cart that can be used to retrieve the items associated with that cart. This URL can be used in workflows and content to recover the items linked to that cart.
This article explains how the Cart Recovery URL works and how to use it in Connectif.
1. Properties
1.1. About the use of the Cart Recovery URL
- The Cart Recovery URL is not generated by Connectif; the client sends it to Connectif through their integration to enable its use in Workflows and Content.
- This URL must be valid and listed in the Authorized Domains ("Store Settings > Web > Advanced Settings"), otherwise, the URL will not be stored.
- This URL is not available in VTEX Legacy integrations.
1.2. About the Cart Recovery URL field
- This field allows Connectif to store, in each contact's cart, a URL containing the items linked to that cart.
2. How the Cart Recovery URL works in each CMS
Each CMS handles this type of cart recovery URL differently depending on the integration being used:
a. How this URL works in Shopify
The Cart Recovery URL in Shopify contains the exact information of the products currently in the customer's cart, including details on variants (sizes, colors, etc.) and quantities.
When the contact visits this URL, which directs them to the cart page, the contents of their current session's cart are replaced with the recovered cart's contents.
b. How this URL works in Prestashop
The Cart Recovery URL in Prestashop includes the native Prestashop cart identifier.
Using this cart identifier, Prestashop retrieves the cart's details, including variants with their specific sizes/colors, etc.
When this link is visited, the user is directed to the cart page containing the recovered products, completely replacing the contents of their current cart session.
If the Connectif module is inactive while these links are accessed, the user will be redirected to the homepage without altering their current cart session.
c. How this URL works in Magento 2
The Cart Recovery URL in Magento contains the native Magento cart identifier. Using this identifier, Magento retrieves the cart's details, including variants (sizes, colors, etc.) and quantities.
When the contact visits this URL, which takes them directly to the cart page, the contents of their current session's cart are replaced with the recovered cart's items.
If the contact does not have an active cart at that moment, a new one will be created and assigned to them.
d. How this URL works in WooCommerce
The Cart Recovery URL in WooCommerce contains the exact information of the products currently in the customer's cart, including details on variants (sizes, colors, etc.) and quantities.
When the contact visits this URL, which takes them directly to the cart page, the contents of their current session's cart are replaced with the recovered cart's items.
e. How this URL works in VTEX IO
In VTEX IO, the Cart Recovery URL contains the specific product identifiers, including the sales channel (Sales Channel or Trade Policy) and the seller (Seller). This ensures the recovery of product variants, such as specific sizes and colors, while maintaining prices tied to a specific seller if the VTEX store acts as a Marketplace.
When visiting the link, the contact is directed to the cart page with the following characteristics:
- If the contact has other products in their cart, they will remain, and the new products will be added. Previously added items will not be removed.
- The URL also retrieves out-of-stock products. VTEX displays a stock warning to allow the contact to remove those items before proceeding with the purchase.
- An error message is shown for products that do not exist or are disabled.
f. How this URL works in BigCommerce
The Cart Recovery URL in BigCommerce contains the exact information of the products currently in the customer's cart, including details on variants (sizes, colors, etc.) and quantities.
When the contact visits this URL, which takes them directly to the cart page, the contents of their current session's cart are replaced with the recovered cart's items.
g. How this URL works in custom integrations
In custom integrations, the behavior of the Cart Recovery URL when visited by the contact depends on the implementation done by the eCommerce. Each eCommerce platform may define its own behavior in these scenarios.
3. How to use this URL in Connectif
To obtain the Cart Recovery URL through a workflow, it must be done via the node "Get Last Cart" and "On Abandoned Cart", and then mapped into the variables to be shown or sent in the content.
Below is an example using the "Get Last Cart" node, based on a monthly cart recovery strategy available in the Connectif workflow templates.
Through the "Get Last Cart" node, the Cart Recovery URL is obtained, which will be sent in the "Send Email" node, where a variable has been configured to include it.
When configuring the "Send Email" node, you must associate this variable (right column) with the Cart Recovery URL (left column).
As a result, an email will be sent in this workflow to each contact containing the Cart Recovery URL.
Keep learning!
To make the most of your Connectif account, we recommend continuing with the following articles:
- Integration via tags, to learn about all the notifications you can send from your eCommerce to Connectif and how they work.
- Integration via JavaScript events, to learn about this integration method that gives you greater control over when and how to send events.
- Integration with Connectif via API, to synchronize contacts, products, purchases, and coupons.
- Check the integration with eCommerce, to ensure that all data is synchronizing correctly in your Connectif account.