Universal Product Button
Paste once on your website — works automatically on every product page. Shoppers see a "Try On" button that loads the right product instantly.
Button preview
Try On
This button appears automatically on your product pages
PHP — paste in your theme's functions.php
1
Copy the snippet above and paste it into your theme's
functions.php file. In WordPress admin go to Appearance → Theme File Editor → functions.php.2
The script automatically reads the WooCommerce product ID from the page and matches it against your Fitox products. Make sure your products are imported in the Products tab first.
3
A purple "Try On" button appears on every matching product page. Shoppers click it and land on Fitox with the product ready to try on — no extra setup needed per product.
Cart Outfit Button
Paste on your cart page. Shoppers can try on their entire cart as a complete outfit in one tap.
Button preview
Try Full Outfit
Appears on your cart page, reads all cart items automatically
PHP — paste in your theme's functions.php
1
Copy the snippet and paste it into your theme's
functions.php file, below the product button function.2
The script reads all products currently in the shopper's cart and matches them against your Fitox products using their WooCommerce IDs.
3
A "Try Full Outfit" button appears. One tap opens Fitox with all cart items loaded as a complete outfit — the shopper can try on everything together before ordering.
Product ID Reference
These are your imported products and their WooCommerce IDs. The embed script matches these IDs against the product page to show the Try On button.
| Product | Category | WooCommerce ID | Status | |
|---|---|---|---|---|
Loading products… | ||||