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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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