Flag Free Shipping on Product and More Info Pages 4 Customer

Request and discuss enhancements to ShopSite

Flag Free Shipping on Product and More Info Pages 4 Customer

Postby kayakooc » Fri Jan 02, 2009 2:47 pm

Hello,

We would like to reference the free shipping fields in our product template is this possible? Are there any variables that contain these fields? The fields are Free Shipping Enabled and the minimum dollar amount?

We would like to test it in a javascript and display our Free Shipping image on the product page above the price if it qualifies. We now hard code the minimum amount to make it happen. See
http://www.kayakproshop.com/Kok_DryLiner_Women.html

Thanks,

John




kayakooc
 
Posts: 10
Joined: Fri Jan 02, 2009 2:38 pm

Re: Flag Free Shipping on Product and More Info Pages 4 Cust

Postby kayakooc » Mon Dec 12, 2011 1:41 pm

We wrote a script to do this for us. Access the pages source code.
Where 49.00 in "a=(compareNumbers(p1,49.00))" is the threshold number.

<!-- Display Free SHipping Icon ? -->
<script type="text/javascript">
var a=2;
p1 = "$119.95".replace("$","");
//document.write(p1); //


//document.write(p1);//

p1 = p1.replace(",","");
a=(compareNumbers(p1,49.00))
//document.write(a);//
if (a==true)
document.write ("\<a href\=\"http:\/\/www.kayakproshop.com\/Free_Shipping.html\"><img src=\"media\/kps_images\/Freeshipping4.jpg\" align=center border=\"0\"\ /><\/a>");
</script>
<!-- Display Free International Shipping ? -->
<div id="FreeShipBanner"></div>

<SCRIPT LANGUAGE="JavaScript">
function compareNumbers(x,y)
{
if(x>=y)
return true;
else
return false;
}
</SCRIPT>
kayakooc
 
Posts: 10
Joined: Fri Jan 02, 2009 2:38 pm


Return to Enhancement Requests

Who is online

Users browsing this forum: No registered users and 21 guests

cron