View Single Post
  #2  
Old 05-22-2014, 10:59 AM
Lanna's Avatar
Lanna Lanna is offline
Ecwid Team
 
Join Date: Jan 2011
Posts: 2,675
Default

Quote:
Originally Posted by Roy Bouse View Post
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?
Hi,

Joomla has plugin 'Custom HTML' to add extra Javascript/HTML codes to pages. It will work for inserting scripts for Ecwid store. Please refer to this article for instructions: http://help.ecwid.com/customer/porta...ules-in-joomla
__________________
Lana W.
Ecwid Customer Care Team

More tips and hints on Ecwid use in our Help Center

⬇ Please click Thanks if my reply helped you.

Thank Ecwid team on Twitter