Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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?
0