Would like to do some checks on Webstore products.
What is the field id for Webstore category?
I noticed that it is called itemid as well. Is that correct?
Looking under the List> Website> Categories, I managed to find the internal id of the Category name I want (assuming it is itemid as well)
I wanted to search for all the products that falls under a certain web category, using a script, the following code doesn't seem to work. Help pls....
-------------------------------------------------
function MessageAtCheckout()
{
//get the message from custom field in transaction form
var msg = nlapiGetFieldValue('custbodycheckout_message');
//searching webstore category for items with categories 201872 and 202450
if (msg != '' && (itemid == '201872' || itemid == '202450'))
{
{alert("msg");
}
}
-------------------------------------------------
this is the error message
An unexpected error occurred in a script running on this page.
MessageAtCheckout (saveRecord)
customform
JS_EXCEPTION
ReferenceError MessageAtCheckout is not defined