on 06-25-2024 08:34 AM - edited a week ago
This guide walks you through adding 1WorldSync rich content to your product pages using the generic inline script.
To grab your script: open your script page → click Get Code → copy the SKEY and ZoneID shown.
Paste the following into your product page template:
<div id="ccs-feature-icons"></div>
<div id="ccs-inline-content"></div>
<div id="ccs-logos"></div>
<script type='text/javascript'>
var ccs_cc_args = ccs_cc_args || [];
ccs_cc_args.push(['cpn', 'CPN']);
ccs_cc_args.push(['mf', 'Microsoft']);
ccs_cc_args.push(['pn', 'QAT00009']);
ccs_cc_args.push(['upcean', 'UPC/EAN']);
ccs_cc_args.push(['lang', 'EN']);
ccs_cc_args.push(['market', 'GB']);
(function () {
var o = ccs_cc_args;
o.push(['_SKey', 'SKEY']);
o.push(['_ZoneId', 'ZONEID']);
var sc = document.createElement('script');
sc.type = 'text/javascript'; sc.async = true;
sc.src=('https:' == document.location.protocol ? 'https://' : 'http://') + 'cdn.cs.1worldsync.com/jsc/h1ws.js';
var n = document.getElementsByTagName('script')[0];
n.parentNode.insertBefore(sc, n);
})();
</script>
Replace SKEY and ZONEID with your own values from My Services.
Swap the placeholder values for the matching field from your catalog:
| Parameter | What to enter | Example |
|---|---|---|
| cpn | Customer Part Number (your internal SKU ID, used in add-to-cart) | — |
| mf | Manufacturer name | Lenovo, Cisco, Microsoft Corp. |
| pn | Manufacturer part number | VM617A8#ABA |
| lang | 2-letter ISO 639-1 language code | en, fr, de |
| market | 2-letter country code | US, DE, GB |
| upcean (optional) | UPC or EAN code of the product | — |
The script renders content into these <div> elements. Place them where you want the content to appear:
<div id="ccs-feature-icons"></div>
<div id="ccs-inline-content"></div>
<div id="ccs-logos"></div>Save and publish the page to your website.
For Logo programs, we need a full catalog feed:
https:// — e.g. https://www.domain.com)