Bigcommerce Social Shop and Olark

As mentioned previously, I recently installed a livechat function on our Kids Party bags site using olark and bigcommerce.

This works great however it looks very wierd in our social shop in facebook, as a result I ended up modifying the text in the integration to disable olark in the social shop.

Before:

<!– begin olark code –><script type=’text/javascript’>/*{literal}<![CDATA[*/
window.olark||(function(c){var
...
olark.identify(...);/*]]>{/literal}*/</script>
<!– end olark code –>

After
<!– begin olark code –><script type=’text/javascript’>/*{literal}<![CDATA[*/if (window.location.href && window.location.href.indexOf("__socialshop")==-1) {window.olark||(function(c){var
...
olark.identify(...);}/*]]>{/literal}*/</script>
<!– end olark code –>

This diables olark in the soial shop.

… Enjoy

 

 

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>