nice post on pipeline scripting

“Pipeline problem with diferent pricing for different customer groups”
http://objectmix.com/commerce-server/257885-pipeline-problem-diferent-pricing-different-customer-grou.html


'The following entry points are available (shown in VBScript format):
function MSCSExecute(config, orderform, context, flags)

if Orderform.[shopper_type] = "1" then
for each item in orderform.items
item.[_product_list_price] = item.[_product_list_price] * .75
next
else
if Orderform.[shopper_type] = "2" then
for each item in orderform.items
item.[_product_list_price] = item.[_product_list_price] * .5
next
else
for each item in orderform.items
item.[_product_list_price] = item.[_product_list_price]
next
end if
end if

MSCSExecute = 1
end function