Hello everybody:
Here is the script for my is my script in the last stage of plan.pcf pipeline at the Inventory stage.
function MSCSExecute(config, orderform, context, flags)
for each item in orderform.items
if item.quantity > item.[_product_in_stock] then
orderform.[_purchase_errors].add "We are "
& item.quantity - item.[_product_in_stock]
& " short of SKU " & item.[_product_sku]
& " to fulfill your order"
end if
next
MSCSExecute = 1
end function
This suppose to alert the customer about the item missing in the shopping card. Here is the error message that I got:
Error Type:
Commerce.MtsPipeline (0x80020101)
Unable to report pipeline load failure to event log [Diamonds at Reflecting Concepts]Component Execution failed for component[0x18] hr: 0x80020101 ProgID: Commerce.Scriptor.1 MscsOpen() failed. Error Loading Script. Parsing failed. Expected statement & item.quantity - item.[_product_in_stock] Line: 8.
/i_util.asp, line 74
Any Ideas???
Here is the script for my is my script in the last stage of plan.pcf pipeline at the Inventory stage.
function MSCSExecute(config, orderform, context, flags)
for each item in orderform.items
if item.quantity > item.[_product_in_stock] then
orderform.[_purchase_errors].add "We are "
& item.quantity - item.[_product_in_stock]
& " short of SKU " & item.[_product_sku]
& " to fulfill your order"
end if
next
MSCSExecute = 1
end function
This suppose to alert the customer about the item missing in the shopping card. Here is the error message that I got:
Error Type:
Commerce.MtsPipeline (0x80020101)
Unable to report pipeline load failure to event log [Diamonds at Reflecting Concepts]Component Execution failed for component[0x18] hr: 0x80020101 ProgID: Commerce.Scriptor.1 MscsOpen() failed. Error Loading Script. Parsing failed. Expected statement & item.quantity - item.[_product_in_stock] Line: 8.
/i_util.asp, line 74
Any Ideas???