The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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?
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:45 AM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.