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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
tag to pull promocode
howdy
i want to know how to pull the promocode (either text or internal id) from the checkout. I want to display a message on the screen if someone enters a specific promocode
something like this:
[CODE]<script language="javascript" type="text/javascript">
var p_code = document.getElementById('promocode').value;
var c_cart ='<%=getCartItemCount()%>';
var f_discount = c_cart * 5 / 12
var f_round = Math.round(f_discount*100)/100
if (p_code=='happynewyear')
{
document.write('<div align="center">Your order total includes your ' + p_code + ' discount of $' + t_round + '</div>');
i want to know how to pull the promocode (either text or internal id) from the checkout. I want to display a message on the screen if someone enters a specific promocode
something like this:
[CODE]<script language="javascript" type="text/javascript">
var p_code = document.getElementById('promocode').value;
var c_cart ='<%=getCartItemCount()%>';
var f_discount = c_cart * 5 / 12
var f_round = Math.round(f_discount*100)/100
if (p_code=='happynewyear')
{
document.write('<div align="center">Your order total includes your ' + p_code + ' discount of $' + t_round + '</div>');
0