Commerce Server General - 2 independent discounts per product

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > April 2005 > 2 independent discounts per product





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 2 independent discounts per product
Alexander Yushchenko

2005-04-20, 5:49 pm

Hello!

I use CS2002 + SP3 + FP1.

I need to apply 2 independent discounts to one product.
The discounts have the same logic: just set the given price when
the current date is in a given range (beginning and end dates are given).
If both of the discounts are to be appied (the corresponding date
ranges intersect), the given one is applied (the second one, always).

Can I implement this using standard discounts, or do I have to
implement some custom logic?

--
Yours faithfully,
Alexander Yushchenko
SusanH

2005-04-26, 8:47 pm

In the Discount definitions, in the "Advanced" tab, look at "Priorities".
I'm almost positive that if 2 discounts for the same product have the same
priority (i.e. both 1), then they both get applied.

For example, we have a set of "Volume discounts" where our priorities are
1-5. If they hit the level 1 discount, they also qualify for another
discount we have which is a gift with purchase of $75 or more. If I go on my
site and put $500 in my cart, I get the free gift and the level 1 discount,
so it looks like it works.

"Alexander Yushchenko" wrote:

> Hello!
>
> I use CS2002 + SP3 + FP1.
>
> I need to apply 2 independent discounts to one product.
> The discounts have the same logic: just set the given price when
> the current date is in a given range (beginning and end dates are given).
> If both of the discounts are to be appied (the corresponding date
> ranges intersect), the given one is applied (the second one, always).
>
> Can I implement this using standard discounts, or do I have to
> implement some custom logic?
>
> --
> Yours faithfully,
> Alexander Yushchenko
>

Zoe Hart [MVP]

2005-04-27, 5:52 pm

To have two discounts applied to or even considered for the same product,
you'll need to adjust the discount interactions. By default, once a product
has been an award for one discount, it's not available as an award or a
condition for any other discount. It seems like you could implement your
situation in one of two ways:

Either set the one (call it A) you want to trump the other (call it B) as
the higher priority (lower number = higher priority) and use the default
interactions. A will be evaluated first based on its priority. If it meets
its criteria it will be applied and B will not be considered because the
product has already been awarded A - that's the default interaction
settings.

Alternatively you could set B with a higher priority so it gets evaluated
first. Then, if you still want A to trump B, you'll need to set the
interaction settings for B to allow awards of this discount to be used as
awards in other discounts. That way, whether or not B applies, A will still
be considered and applied if it qualifies.

However the discount system doesn't allow for a set price = X award. It
allows for dollars off or percent off. And therefore if both discounts
apply, they're actually cumulative. So I think your best bet is to configure
the discounts as dollars off, setting the offset so that it results in the
price you want, configuring A as a higher priority and allowing no discount
interactions (the default).

--
Zoe Hart
Commerce Server MVP

"Alexander Yushchenko" <sasha-yoush@mtu-net.ru> wrote in message
news:O6DVizbRFHA.2664@TK2MSFTNGP15.phx.gbl...
> Hello!
>
> I use CS2002 + SP3 + FP1.
>
> I need to apply 2 independent discounts to one product.
> The discounts have the same logic: just set the given price when
> the current date is in a given range (beginning and end dates are given).
> If both of the discounts are to be appied (the corresponding date
> ranges intersect), the given one is applied (the second one, always).
>
> Can I implement this using standard discounts, or do I have to
> implement some custom logic?
>
> --
> Yours faithfully,
> Alexander Yushchenko



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com