Re: Pipeline problem with diferent pricing for different customer
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > Re: Pipeline problem with diferent pricing for different customer




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Pipeline problem with diferent pricing for different customer  
bobby


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-26-05 01:46 AM

Dear Ravi:
Just one last question.  I changed the scriptor to this:


on error resume next
if  orderform.items.[shopper_type] =  1  AND orderform.items.[discou
nt] =  2
then

for each item in orderform.items
item.[_product_list_price] = item.[_product_list_price]  * .8
next

else

if  orderform.items.[shopper_type] =  1  AND orderform.items.[discou
nt] =  3
then

for each item in orderform.items
item.[_product_list_price] = item.[_product_list_price]  * .75
next

else

if  orderform.items.[shopper_type] =  1  AND orderform.items.[discou
nt] =  4
then

for each item in orderform.items
item.[_product_list_price] = item.[_product_list_price]  * .4
next

else

if  orderform.items.[shopper_type] =  2  AND orderform.items.[discou
nt] =  2
then

for each item in orderform.items
item.[_product_list_price] = item.[_product_list_price]  * .72
next

else

if  orderform.items.[shopper_type] =  2  AND orderform.items.[discou
nt] =  3
then

for each item in orderform.items
item.[_product_list_price] = item.[_product_list_price]  * .6
next

else

if  orderform.items.[shopper_type] =  2  AND orderform.items.[discou
nt] =  4
then

for each item in orderform.items
item.[_product_list_price] = item.[_product_list_price]  * .15
next

else

for each item in orderform.items
item.[_product_list_price] = item.[_product_list_price]
next

end if
end if
end if
end if
end if
end if


the idea was to discount item in the basket based on the category and so
called
orderform.items.[discount]
the problem rises when we are using for each loop. In the order I get each
item seperatly with different orderform.items.[discount] and
orderform.items.[shopper_type] but when I use the for each loop it appli
ys
the first items discout to all the items.  Do you have any suggestion for
this.
Then again I appreciate the help.
Thanks
Bobby





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:21 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register