Adding Try-On to a WooCommerce Store in Nigeria With One Script Tag
By the ZeDaq.ai team · · 4 min read
On this page
You can add try-on to a WooCommerce store in Nigeria by pasting one ZeDaq.ai script tag into your product page template. The tag adds "Try it on" and "Find my size" buttons, so shoppers can see your garment on their own photo and get a size from your chart.
There is no WooCommerce plugin to install. It is a small piece of code that works on WordPress the same way it works on Wix, Squarespace, BigCommerce and custom sites. For why fit tools matter so much for African labels, see our guide to virtual try-on for African fashion brands.
What does the script tag add to your store?
The widget adds two buttons to your product pages:
- Try it on. The shopper uploads one photo and sees your real garment on their body.
- Find my size. A 30-second body scan from one photo plus height, matched to your own size chart.
Both run on your own site, in the shopper's browser. Buyers don't download an app or leave your store, which matters when most of your traffic comes from Instagram and WhatsApp links on mobile.
What do you need before you start?
Check these first:
- A ZeDaq.ai account. Sign up on the website. The Free plan is enough to test.
- Admin access to your WordPress site, or a developer who has it.
- Your store's domain, such as yourbrand.com.ng or yourbrand.com.
- Your size guide as body measurements, one chart per garment type: tops, outerwear, dresses and bottoms.
- A backup of your theme, or a child theme, before you change any template.

How do you add the script tag step by step?
Step 1: Create a key locked to your domain
In ZeDaq.ai, go to Dashboard, then API keys, and create a key. Lock it to your store's domain. A locked key only works on your site, so nobody can copy it into theirs.
Step 2: Add your size charts
Go to Dashboard, then Size charts. Enter your own size guide for each garment type you sell. If you skip this, "Find my size" uses a generic UK, US, EU or AU chart, which may not match your cut.
Step 3: Paste the tag into your product template
Add this line to the template that renders your single product pages, with your key in place of the dots:
<script src="https://www.zedaq.ai/widget/zedaq.js" data-key="…" defer></script>
In WooCommerce, that is usually the single product template in your theme or child theme. Some store owners add it through a trusted code-snippet tool that can target product pages. The full setup notes are in the ZeDaq.ai widget docs.
Step 4: Clear your cache
Many Nigerian WordPress sites use caching plugins to speed up pages on mobile data. Clear the cache after you add the tag, or the buttons may not show.
Step 5: Test on a phone
Open a product page on your phone using mobile data. Tap "Try it on," upload a photo, then try "Find my size" with your height. Check that the suggested size matches what you would tell a buyer in person.
What if you have a developer building your store?
If your developer prefers more control, they can use the REST API instead of the widget. They send requests to POST /api/v1/tryon with an x-api-key header. The guide to the virtual try-on API for developers explains when the API makes more sense than the widget.
For most small brands, the script tag is the faster route. It needs no custom code beyond the one line.
Which product photos work best?
Your try-on result depends on your product image. For WooCommerce stores:
- Use a bright, front-facing photo of the full garment.
- Avoid heavy filters, text overlays or busy backgrounds.
- Make sure the main product image is the clearest one, not a lifestyle shot.
Bold Ankara and adire prints need extra care, because detail matters to buyers. The guide on showing Ankara prints in try-on covers what to check.
How much does it cost?
ZeDaq.ai plans are priced in US dollars:
| Plan | Price | Notes |
|---|---|---|
| Free | $0 | 3 try-ons, 3 measurements and 5 invoices a month |
| Micro | $14/mo | |
| Starter | $49/mo | |
| Growth | $129/mo | |
| Scale | $299/mo |
Every paid plan has a 3-day free trial with no card required. Check the ZeDaq.ai pricing page for each plan's allowance before you choose.
Should you use WooCommerce or Shopify for try-on?
Both work. On Shopify, you install an app and switch on an embed. On WooCommerce, you paste one tag. If you haven't picked a platform yet, compare the steps in adding try-on to a Nigerian Shopify store.
Get your key and add try-on to WooCommerce
FAQs
Is there a ZeDaq.ai WooCommerce plugin?
No. You add the script tag to your product template instead. It works on WordPress without a plugin from ZeDaq.ai.
Why must the key be locked to my domain?
A locked key only works on your own site. If someone copies your tag, it won't run on their store.
Will the tag work on my home page too?
Place it on your product page template, where shoppers see a single garment. That is where "Try it on" and "Find my size" make sense.
Can I use the same key for a staging site?
The key is locked to your store's domain. Check the widget docs for how to handle a test site before you launch.
Try ZeDaq.ai free
Virtual try-on and Find my size for your store, plus client, order and invoicing tools for tailors, in one subscription.


