-
AuthorPosts
-
June 26, 2019 at 4:49 am #1113451
Hello, I am trying to add syndicated content from cnet to my site. This a product catalog that I would like to display.
They have given me the code to add but when I paste it into the code block it does not work.This is the code:
<!DOCTYPE html>
<html>
<head>
<meta charset=”utf-8″>
<title>Example Page</title>
</head>
<body>
<div id=”ccs-logos”></div>
<div id=”ccs-inline-content”></div><script type=’text/javascript’>
var ccs_cc_args = ccs_cc_args || [];// Product Page
ccs_cc_args.push([‘cpn’, ‘CPN’]);
ccs_cc_args.push([‘mf’, ‘MANUFACTURER_NAME’]);
ccs_cc_args.push([‘pn’, ‘MANUFACTURER_PART_NUMBER’]);
ccs_cc_args.push([‘upcean’, ‘UPC_EAN_CODE’]);
ccs_cc_args.push([‘ccid’, ‘CATALOG_CODE’]);
ccs_cc_args.push([‘lang’, ‘LANGUAGE’]);
ccs_cc_args.push([‘market’, ‘MARKET’]);(function () {
var o = ccs_cc_args; o.push([‘_SKey’, ’52edb637′]); o.push([‘_ZoneId’, ‘d92b921a5f’]);
var sc = document.createElement(‘script’); sc.type = ‘text/javascript’; sc.async = true;
sc.src = (‘https:’ == document.location.protocol ? ‘https://’ : ‘http://’) + ‘cdn.cnetcontent.com/jsc/h.js’;
var n = document.getElementsByTagName(‘script’)[0]; n.parentNode.insertBefore(sc, n);
})();
</script>
</body>
</html>June 26, 2019 at 7:14 pm #1113695Hey shertigan,
Can you disable caching and minification for now?
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaJune 26, 2019 at 7:53 pm #1113708Hi Victoria – I deactivated the caching.
thanks so much for your help!June 28, 2019 at 11:30 am #1114207Hi shertigan,
Thank you. Where are you getting this code from? Can we see the docs?
Best regards,
VictoriaJune 28, 2019 at 5:50 pm #1114321I was to display a live product catalog for dell.through CNET. This is the email they sent
Sandra Hertigan has sent you a script from the CNET Content Solutions portal. It will only take you 4 steps to integrate the Product Page content in your website.
Choose a location within your company’s website
Open that page in an editor and find the place in the code where you want to place the product page content.Pick up your code
Copy and paste the code below in the location within your HTML page where you would like the product page content to display.<!DOCTYPE html>
<html>
<head>
<meta charset=”utf-8″>
<title>Example Page</title>
</head>
<body>
<div id=”ccs-logos”></div>
<div id=”ccs-inline-content”></div><script type=’text/javascript’>
var ccs_cc_args = ccs_cc_args || [];// Product Page
ccs_cc_args.push([‘cpn’, ‘CPN’]);
ccs_cc_args.push([‘mf’, ‘MANUFACTURER_NAME’]);
ccs_cc_args.push([‘pn’, ‘MANUFACTURER_PART_NUMBER’]);
ccs_cc_args.push([‘upcean’, ‘UPC_EAN_CODE’]);
ccs_cc_args.push([‘ccid’, ‘CATALOG_CODE’]);
ccs_cc_args.push([‘lang’, ‘LANGUAGE’]);
ccs_cc_args.push([‘market’, ‘MARKET’]);(function () {
var o = ccs_cc_args; o.push([‘_SKey’, ’52edb637′]); o.push([‘_ZoneId’, ‘d92b921a5f’]);
var sc = document.createElement(‘script’); sc.type = ‘text/javascript’; sc.async = true;
sc.src = (‘https:’ == document.location.protocol ? ‘https://’ : ‘http://’) + ‘cdn.cnetcontent.com/jsc/h.js’;
var n = document.getElementsByTagName(‘script’)[0]; n.parentNode.insertBefore(sc, n);
})();
</script>
</body>
</html>Update Dynamic Parameters
Update the parameters below with the dynamic values from your website.Required
MANUFACTURER_NAME – The manufacturer name. Example: Lenovo, Cisco, Microsoft Corp.
MANUFACTURER_PART_NUMBER – The manufacturer part number. Example: VM617A8#ABA.
LANGUAGE – Two-letter ISO 639-1 language code that should be used. Examples: en, fr, de.
MARKET – Two-letter ISO 3166-1 country code to use, or WW for world-wide. Examples: US, DE, GB.Optional
CPN – Customer part number will be your internal part number for the SKU as defined in your catalog.
UPC_EAN_CODE – UPC or EAN code of the product being requested.
CATALOG_CODE – The unique identifier of the catalog found in My Catalogs.Save changes and publish
Save your changes and publish the page to your website. Navigate to your website to view the product page content.Note: If you are using a content management system to maintain your intranet, you may need to contact your administrator or webmaster to implement the code.
Contact Us
Contact Support
Thank you for your partnership. We look forward to driving success together.
June 29, 2019 at 7:55 pm #1114498Hi shertigan,
This code cannot be added to the code block as it is and the JavaScript will not work within the Enfold page.
This code is meant to work when there is nothing else on the page or to be adjusted.
Best regards,
VictoriaJuly 2, 2019 at 7:30 pm #1115259Ok.
So, in general, I can not use syndicated content on my site because of the theme or is it just this content because of the JavaScript?
Thanks!July 3, 2019 at 8:34 pm #1115568Hi shertigan,
You can use any content you want to add, it just has to be properly added. Either with the iframe or with the working JavaScript.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.