View Single Post
  #1  
Old 05-20-2014, 09:03 PM
Roy Bouse's Avatar
Roy Bouse Roy Bouse is offline
 
Join Date: May 2014
Posts: 2
Question adding javascript to joomla

I want to make buy 3 strap ons and get a free t-shirt of your choice on http://thestrapon.org/. it should be something like this.
<script type="text/javascript">
Ecwid.OnPageLoaded.add(function(page){
if (page.type == "CATEGORY") {
$("div.ecwid-productBrowser-price").each(function(){
if ($(this).text() == "$0.00") {
$(this).text("Free t-shirt");
}
});
};
if (page.type == "PRODUCT" && $("div.ecwid-productBrowser-price").text() == "$0.00") {
$("div.ecwid-productBrowser-price").text("Free t-shirt");
};
})​
</script>

How do I install it and where?