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