Discussions
In Stock Javascript question
So I currently use this script on my store pages to show if an item is in stock or to flag a call us message:
<script language='Javascript'>
var QA="<%=getCurrentAttribute('item','quantityavailable')%>";
if (QA > 5) {
document.write("In Stock!")
}
else {
document.write("Call 866-891-3602<BR/> for availability.".fontcolor('#999999').fontsize('-2'))
}
</script>
I want to use this on a hosted page so I am wondering how I can tell it to look for the quantity of a certain product on these pages. Has anyone done this before?