Content Solutions DocumentationPublished Date: 2021-05-28 Downloaded: December 22, 2024, 12:21 pm |
Content Solutions Documentation |
Zen Cart Integration
2021-05-28
DisclaimerDue to the large number of third party applications and Content Management Systems (CMS), 1Worldsync Content Solutions, does not provide support for third party applications or CMS. This guide is provided as an aide for guidance and suggestions for integration. 1WorldSync is not liable for any actions, damage or loss. If you require support for your third party application or CMS, please contact the owner or company that produced the application for assistance. |
Getting Started with Zen Cart Integration
There are some steps required in order to integrate ContentCast or DataSource Cloud. Before getting started, the following conditions must be met:
- You are using “Products Manufacturer” field in your product catalog
- You are storing the actual manufacturer part number in the Products Model field.
- You have a Zen Cart Administrator login
- You have write access to the zen cart files to make modifications to the templates.
Edit your product page template
- Get your product page code at https://portal.cs.1worldsync.com/
- /includes/templates/<YOUR_TEMPLATE>/templates/tpl_product_info_display.php
- if the file doesn’t exist, you will need to copy this template file from the /included/templates/templates_default/templates/ directory
- Insert the 3 div containers after <!–eof Main product Image–>
<!--eof Main Product Image--> <div id="ccs-logos"></div> <id="ccs-explore-product"></div> <id="ccs-product-fiche"></div> |
- Find:
<!--bof Product description --> <?php if ($products_description != '') { ?> <div id="productDescription"><?php echo stripslashes($products_description); ?></div> <?php } ?> <!--eof Product description -->
- Change to
<!--bof Product description --> <?php if ($products_description != '') { ?> <div id="productDescription"><div id="ccs-inline-content"><?php echo stripslashes($products_description); ?></div></div> <?php } ?> <!--eof Product description --> <script type='text/javascript'> var ccs_cc_args = ccs_cc_args || []; ccs_cc_args.push(['mf', '<?php echo (!empty($manufacturers_name)) ? $manufacturers_name : "Unknown Mfr";?>']); ccs_cc_args.push(['pn', '<?php echo (!empty($products_model)) ? $products_model : "Unknown PN";?>']); ccs_cc_args.push(['lang', '<?php echo $_SESSION['languages_code'];?>']); ccs_cc_args.push(['market', 'US']); (function () { var o = ccs_cc_args; o.push(['_SKey', 'YOURSUBSCRIBERKEY']); o.push(['_ZoneId', 'YOURZONEID']); 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 YOURSUBSCRIBERKEY with the Skey and YOURZONEID with the ZoneId values received from the portal when you clicked Get Code.
- Save and re-upload your template file to your web server.
Alternative Option:
go to /includes/templates/<YOUR_TEMPLATE>/ directory and create a new folder called “jscript”