The Cart Recovery URL is a property included in the tag “Current Cart State”. This field stores a URL in the contact's cart to recover the items related to that same cart. This URL can be used in workflows and content to recover the items related to that cart.
This article explains how the Cart Recovery URL works and how it is used 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, allowing it to be used in Workflows and Content.
- This URL must be valid and allowed in Authorized Domains ("Store Settings > Web > Advanced Settings"), otherwise, the URL will not be stored.
- This URL is not available for VTEX Legacy integrations.
1.2. About the Cart recovery URL field
- This field allows storing a URL in Connectif, in each contact's cart, containing the items related to that same cart.
2. How Cart URL recovery works in each CMS
Each CMS manages this type of cart recovery URL differently depending on the integration:
a. How this URL works in Shopify
The Cart Recovery URL in Shopify is a URL that contains the exact information about the products that the customer has in their cart at any given time, including information about variants (sizes, colors, etc.) and quantities.
When the contact visits this URL, which takes them directly to the cart page, it replaces all the contents of the current session's cart that the contact might have.
b. How this URL works in Prestashop
The Cart Recovery URL in Prestashop is a URL that contains the native cart identifier of Prestashop.
Using this cart identifier, the cart information is retrieved from Prestashop, including variant details, such as specific sizes/colors, etc.
Upon visiting this link, the contact is directed to the cart page with the products it contained, completely replacing the content of the contact's current cart if they had one.
If the Connectif module is not active at the time of navigating these generated links, the contact will be redirected to the homepage without altering the current session cart, if any.
c. How this URL works in Magento 2
The Cart Recovery URL in Magento is a URL that contains Magento’s native cart identifier. Using this identifier, variant information (sizes, colors, etc.) and quantities are retrieved in Magento.
When the contact visits this URL, which takes them directly to the cart page, it replaces all the content of the current session's cart with the content retrieved through the cart identifier in Magento.
If the contact does not have an active cart at that time, a new one will be created and assigned.
d. How this URL works in WooCommerce
The Cart Recovery URL in WooCommerce is a URL that contains the exact information of the products the customer has in their cart at any time, including information about variants (sizes, colors, etc.) and quantities.
When the contact visits this URL, which takes them directly to the cart page, it replaces all the content of the current session's cart that the contact might have.
e. How this URL works in VTEX
In VTEX, the Cart Recovery URL contains the specific product identifiers, including the Sales Channel and the Seller. This ensures that product variants such as specific sizes and colors are recovered, and prices are kept consistent depending on the 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 the cart, these remain, and the new ones are added; in other words, previously added items are not lost.
- The URL also recovers out-of-stock products. VTEX is responsible for displaying a stock warning for the contact to remove these items before proceeding with the purchase.
- An error warning is shown for products that do not exist or are disabled.
f. How this URL works in custom integrations
In custom integrations, the behavior of the Cart Recovery URL when the contact visits it depends on the implementation made by the Ecommerce, as each Ecommerce can decide how to handle these cases.
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.