Put a Virtual Try-On button beside your product details or over a product image so shoppers can start a try-on while browsing. Clicking the button opens Rep AI chat for that product, where the shopper follows the photo instructions and sees the result.
This guide covers placing the button using an element ID from your store’s theme. Your theme developer can help you choose or add the right element.
Before you start
Enable Virtual Try-On under AI Sales → Sales Skills.
Make sure Rep AI chat is active on your store.
Choose the product pages where you want to offer try-on. Place the button on pages with products suitable for Virtual Try-On.
The product-page button has its own settings. You can use it without enabling the Inline PDP widget or the search widget.
1. Open the button settings
In the Rep AI Console, go to Settings → Chat Widget.
Open Embedded widgets.
Find Virtual Try-On button and turn it on.
If the card asks you to enable the skill first, select Go to Sales Skills, enable Virtual Try-On, then return to the button settings.
2. Choose a placement
Select the option that fits your product page:
Over your product image places the button over the element you select. Use this when shoppers should see the invitation near the product photo.
Under your Add to Cart button, or in your own container places the button inside an element you select. Use this for a dedicated spot beside your product details.
For the second option, choosing it does not automatically find your Add to Cart button. The element you provide determines the position.
3. Enter the element ID
In Element ID, enter the ID of the element where you want the button.
For example, if your theme contains <div id="product-photo">, enter product-photo.
Enter the ID without a
#, quotation marks, or surrounding spaces.Use letters, numbers, hyphens, or underscores, up to 128 characters.
Match the capitalization used in your theme.
Choose an element that exists on the product pages and screen sizes you want to support.
To find an existing ID, open a product page in your browser, right-click the desired area, and select Inspect. Look for an id="..." value on the relevant element. If there is no suitable ID, ask your theme developer to add one.
Use a stable ID that stays the same across products and variant changes. Some image galleries generate a different ID for each product, image, or page load.
The button appears wherever the selected element exists. Choose an element used only on the product pages where you want to offer try-on. If your store uses several product templates, check each relevant template.
4. Save and check your storefront
Click Save and preview in the Rep AI Console.
Open a live product page and refresh it.
Check the button’s position on desktop and mobile.
Click the button and confirm that Rep AI chat starts a try-on for the product you are viewing.
Check another product and switch a variant to make sure the button remains in the right place.
Choose a position shoppers can easily see and tap. Keep your Add to Cart button clear.
Change the button text
Open AI Sales → Sales Skills → Virtual Try-On and update the button label in the skill’s settings. The product-page button uses the same configured label as the Try-On option in chat.
Turn the product-page button off
Return to Settings → Chat Widget → Embedded widgets, turn Virtual Try-On button off, and click Save and preview. Refresh the product page to confirm it is hidden.
Troubleshooting
The button does not appear
Check that Virtual Try-On is enabled, the product-page button is on, and your changes are saved. Confirm the element ID exists on the live product page and matches exactly.
If the button appears on some products but not others, check whether those products use a different template or image-gallery ID.
The button appears in the wrong place or is covered
The ID may point to a wider container, a thumbnail, or a hidden gallery slide. Choose the element intended for the button. Check for nearby image controls, sticky elements, or popups that cover it.
The button appears on desktop but not mobile
Your theme may use a different element on mobile. Choose an element available in both layouts or ask your theme developer to adjust the placement.
The chat says the product cannot be tried on
Button placement does not guarantee that a product supports Virtual Try-On. Review which product templates contain your chosen element and offer the button on suitable products.
If you need help choosing an element or testing placement, contact Rep AI support.