Commerce Server General - CS2002 - Issue in Using Sale Price

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > September 2004 > CS2002 - Issue in Using Sale Price





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 CS2002 - Issue in Using Sale Price
Ravi Shankar

2004-08-30, 5:55 pm

Assuming that Sales Price is a property available for
each product in the catalog...

In the basket pipeline create a component/scriptor
component that would do the evaluation and place the
correct price in the item.[_cy_placed_price] dictionary
key for all the items. the rest would work automatically.

NOTE: The discounts and all would be computed on the
placed price.

HTH
>-----Original Message-----
>Hi,
>
>For our application, we want to use Sale Price, if the

purchase is done
>during the sales dates, otherwise we want to use Default

Price.
>
>We are not able to substitute the Default Price with

Sale Price, hence all
>our Order processing results are wrong.
>
>Can you give a suggestion to handle this ?
>
>Thanks
>
>Joy
>
>.
>

Joy Esther

2004-09-02, 6:21 pm

Thanks for your reply. We have tried as per your suggestion. The code is as
follows :

Dim myorder As OrderForm
myorder = txContext.Current.CartOrderForm
myorder.LineItems(0).Item("cy_placed_price") = "500"

We have all the items stored in the 'myorder' object.

We have a Default Price and a Sale Price defined for every product in the
Business Desk.

But by default for order total calculation the 'Default Price' is taken
by the Commerce Server.

If we set the cy_placed_price(through code) to a default value, it just
saves and does not use the cy_placed_price for order total calculation.

Please let us if there is anything else we need to do to make the above work.

Thanks

Joy



"Ravi Shankar" wrote:

> Assuming that Sales Price is a property available for
> each product in the catalog...
>
> In the basket pipeline create a component/scriptor
> component that would do the evaluation and place the
> correct price in the item.[_cy_placed_price] dictionary
> key for all the items. the rest would work automatically.
>
> NOTE: The discounts and all would be computed on the
> placed price.
>
> HTH
> purchase is done
> Price.
> Sale Price, hence all
>

Ravi Shankar

2004-09-02, 6:21 pm

I hope the code that you've written is being executed in
the "total" pipeline before the "Order Total Stage" or in
the "basket" pipeline after the "RequiredProductInfo"
stage.

the keys are created here and all components of the
pipeline use these keys subsequently. By the time it
comes into the aspx code the pipeline computation have
been performed and you'd not see any changes.

HTH
>-----Original Message-----
>Thanks for your reply. We have tried as per your

suggestion. The code is as
>follows :
>
>Dim myorder As OrderForm
>myorder = txContext.Current.CartOrderForm
>myorder.LineItems(0).Item("cy_placed_price") = "500"
>
>We have all the items stored in the 'myorder' object.
>
>We have a Default Price and a Sale Price defined for

every product in the
>Business Desk.
>
>But by default for order total calculation the 'Default

Price' is taken
>by the Commerce Server.
>
>If we set the cy_placed_price(through code) to a default

value, it just
>saves and does not use the cy_placed_price for order

total calculation.
>
>Please let us if there is anything else we need to do to

make the above work.
>
>Thanks
>
>Joy
>
>
>
>"Ravi Shankar" wrote:
>
dictionary[vbcol=seagreen]
automatically.[vbcol=seagreen]
the[vbcol=seagreen]
Default[vbcol=seagreen]
>.
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com