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!
Hide Domestic Shipping Methods for International Customers
I'm trying to use suitescript to hide our international shipping methods when a customer is checking out who has United States picked as the shipping country. I have been working on this for two days with no luck.
Here is my code:
function PageInit() { var shipcountry = nlapiGetFieldValue(shipcountry); if (shipcountry == 'United States') { nlapiRemoveSelectOption('shipmethod', 'UPS_Worldwide_Express'); nlapiRemoveSelectOption('shipmethod', 'UPS_Worldwide_Expedited'); nlapiRemoveSelectOption('shipmethod', 'UPS_Ground_to_Canada'); nlapiRemoveSelectOption('shipmethod', 'Air_Mail-over_1_lb'); } if (shipcountry =! 'United States') { nlapiRemoveSelectOption('shipmethod', 'Pick-Up'); nlapiRemoveSelectOption('shipmethod', 'Priority_Mail'); nlapiRemoveSelectOption('shipmethod', 'UPS_2_Day_Air'); nlapiRemoveSelectOption('shipmethod', 'UPS_2_Day_Air-Alaska/HI'); nlapiRemoveSelectOption('shipmethod', 'UPS_3_Day_Select'); nlapiRemoveSelectOption('shipmethod', 'UPS_Ground'); nlapiRemoveSelectOption('shipmethod', 'UPS_Next_Day_Air'); } } 0