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.
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