Commerce Server General - Re: Pipeline problem with diferent pricing for different customer

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > March 2005 > Re: Pipeline problem with diferent pricing for different customer





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Pipeline problem with diferent pricing for different customer
Ravi Seshadri

2005-03-29, 6:18 pm

Bobby,
I don't know how you have written the code in the scriptor. But it
should look some thing like this :
for each item in orderform.items
If item.[discount] = 2 Then
item.[_product_list_price] = item .[_product _list _price] * .8
Elseif item.[discount] = 3 Then
item.[_product_list_price] = item .[_product _list _price] * .75
Elseif item.[discount] = 4 Then
item.[_product_list_price] = item .[_product _list _price] * .72
Else
item.[_product_list_price] = item .[_product _list _price]
End if
next
And i assume that shopper_type value is going to be in order level. If
so, write another if condition and check the shopper_type value and
repeat this for loops inside the if conditions.

Regards

Ravi

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com