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
  #1  
Old 05-20-2014, 09:03 PM
Roy Bouse's Avatar
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?
  #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
 
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 05:36 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.