Welcome to the Product Locator (PL) API documentation. This API enables programmatic interaction with Locally's Product Locator, allowing you to launch product and shopping cart pages programmatically.
Overview
The Product Locator API provides two main functions:
- Opening the Product Locator's product page for a specific UPC.
- Managing cart operations for a UPC including opening the cart page and handling affiliate redirects.
The API supports multiple widgets on a single page and includes event emitters for tracking cart operations.
Prerequisites
Before using the API, ensure you have:
- Received and installed the required code snippet from your Locally representative for launching the modal on your product pages.
- If you're using an existing Product Locator embed code, added the following parameters:
Note:var lcly_config_0 = { // Your existing configuration "hide_widget": "1", "enable_pl_api": "1" // Other configuration options }
hide_widget
is an optional parameter that hides the Product Locator launcher/widget.
Support
For additional support or questions, please contact your Locally representative.