This script integrates cross-selling functionality into the VTEX checkout process using data from the VTEX Cross-Selling API.
This solution fetches and displays the first product returned by the Cross-Selling API ("Who saw also bought") in the checkout process.
- A VTEX store account
- Access to your VTEX admin portal
Add CSS and JS files: Save the contents of the provided CSS and JS files to your VTEX admin portal at: https://{accountName}.myvtex.com/admin/portal#/sites/default/code
For more information on the VTEX Cross-Selling API, refer to the VTEX API Documentation