Code Sample and explanation:
ProStores SSML Integration
For those that aren't familiar with SSML, it stands for Store Sense Markup Language and is the proprietary markup for the eBay Prostores e-commerce system.
I run several sites and provide design and coding work for PS users.
First issue is that PS runs on a divided header/footer template system. Header and footer are loaded on each page with the content loaded between them, so you can run into security certificate warnings on the checkout pages if your links aren't relative or secure (https) on those pages.
I've used ssml conditional statements to load the non-secure version on non-secure pages and the secure version on secure pages.
(note: my account isn't enabled for the secure version of the software so the ELSE section is left blank and it just wont' load clicktale on secure pages)
ClickTale Top Section
Quote:
<!-- ClickTale Top part -->
<script type="text/javascript"> var WRInitTime=(new Date()).getTime();
</script>
<!-- ClickTale end of Top part -->
ClickTale Bottom Section
Quote:
<ss:if test="$request.getScheme() == 'http'">
<!-- ClickTale Bottom part -->
<div id="ClickTaleDiv" style="display: none;"></div>
<script src="http://s.clicktale.net/WRb.js" type="text/javascript"></script>
<script type="text/javascript">
if(typeof ClickTale=='function') ClickTale([!your id!],[!your ratio!]);
</script>
<!-- ClickTale end of Bottom part -->
<ss:else/>
<!-- Add your ClickTale SSL Bottom part below if you have one -->
</ss:if>
Hopefully some of you will find this code of use, or at least interesting.
