Pipeline scriptor?
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 > Pipeline scriptor?




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

    Pipeline scriptor?  
Ravi Shankar


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


 
06-21-04 04:04 AM

Actually in the Total Pipeline you have
a "OrderTotalStage" where there is a scriptor
component "ItemTotalsAndDiscountTotalsScriptor". You
should add your own component to this pipeline somewhere
prior to this component and create your own keys (say
_coupon_discount) or such..

Then in the total scriptor do the mathematics properly to
assign the value to the order total.

HTH.

>-----Original Message-----
>I am trying to add a coupon discount feature to the
order summary
>page.  It is a order level discount that needs to be
subtracted
>from the order subtotal before any shipping or tax
charges is
>calculated.
>
>There are two pipelines that are involved for this
process:
>'Basket' and 'Total' pipelines.  The 'Basket' pipeline
has the
>'Order Subtotal' as the last stage and the 'Total'
pipeline has
>stages such as Shipping, Handling, Tax and so on.
>
>I added a new stage 'CalcCouponDisc' to the end of
the 'Basket'
>pipeline and it has this line of code:
>
>  orderform.value("_cy_oadjust_subtotal") =
>CStr(CLng(orderform.value("_cy_oadjust_subtotal")) * 0.9)
>
>  orderform.value("saved_cy_oadjust_subtotal") =
>orderform.value("_cy_oadjust_subtotal")
>
>to give the total a 10% discount.  However, when it
calculates
>the shipping charge and tax, it is still looking at the
original
>subtotal (before the discount).  What do I need to do so
that the
>shipping charge and tax will be calculated using the
discounted
>subtotal?
>
>Thank you!
>
>
>
>
>.
>





[ Post a follow-up to this message ]



    Re: Pipeline scriptor?  
Dean J Garrett


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


 
06-21-04 04:04 AM

Hello, I should have mentioned that we're using CS2000, and I don't think
the elements you describe below are available. Do you happen to know how to
do it in 2000?

THank you!



"Ravi Shankar" <shankar.nospam@hp.com> wrote in message
 news:1baeb01c45049$63239ed0$a001280a@phx
.gbl...[vbcol=seagreen]
> Actually in the Total Pipeline you have
> a "OrderTotalStage" where there is a scriptor
> component "ItemTotalsAndDiscountTotalsScriptor". You
> should add your own component to this pipeline somewhere
> prior to this component and create your own keys (say
> _coupon_discount) or such..
>
> Then in the total scriptor do the mathematics properly to
> assign the value to the order total.
>
> HTH.
> 
> order summary 
> subtracted 
> charges is 
> process: 
> has the 
> pipeline has 
> the 'Basket' 
> calculates 
> original 
> that the 
> discounted 







[ Post a follow-up to this message ]



    Re: Pipeline scriptor?  
Ravi Shankar


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


 
06-21-04 04:04 AM

No difference between versions as far as pipeline
components are concerned. You'd see exactly the same
pipelines and stages there too.

Regards.
>-----Original Message-----
>Hello, I should have mentioned that we're using CS2000,
and I don't think
>the elements you describe below are available. Do you
happen to know how to
>do it in 2000?
>
>THank you!
>
>
>
>"Ravi Shankar" <shankar.nospam@hp.com> wrote in message
> news:1baeb01c45049$63239ed0$a001280a@phx
.gbl... 
somewhere[vbcol=seagreen] 
to[vbcol=seagreen] 
0.9)[vbcol=seagreen] 
the[vbcol=seagreen] 
so[vbcol=seagreen] 
>
>
>.
>





[ Post a follow-up to this message ]



    Re: Pipeline scriptor?  
David Messner [MSFT]


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


 
06-21-04 04:04 AM

Actually the discounting pipeline components have changed significantly
between CS2000 and CS2002.  In factor, order-level discounting is one of
the major new features in CS2002.  CS2002 + Feature Pack 1 has Coupon
features that will do what you want out of the box.

I agree with Ravi about storing away the amount of discount and applying
that to the subtotal after the tax/shipping computation.

Note that in CS2002 (and FP1), order-level discounts split across the line
items and deducted as discounts per line item before the subtotal stage.
So they are automatically taken into account for tax/shipping.

-djm
--
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2004 Microsoft Corporation.  All rights
reserved.

--------------------
Content-Class: urn:content-classes:message
From: "Ravi Shankar" <shankar.nospam@hp.com>
Sender: "Ravi Shankar" <shankar.nospam@hp.com>
References: <OFdEuv$TEHA.2844@TK2MSFTNGP12.phx.gbl>
<1baeb01c45049$63239ed0$a001280a@phx.gbl>
<#coTInwUEHA.4064@TK2MSFTNGP11.phx.gbl>
Subject: Re: Pipeline scriptor?
Date: Wed, 16 Jun 2004 05:09:51 -0700
Lines: 83
Message-ID: <1ce7001c4539a$d39569b0$a601280a@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
thread-index: AcRTmtOVs3VdkDGaTJ2w37eTyq5jDA==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.public.commerceserver.general
Path: cpmsftngxa10.phx.gbl
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14004
NNTP-Posting-Host: tk2msftngxa14.phx.gbl 10.40.1.166
X-Tomcat-NG: microsoft.public.commerceserver.general

No difference between versions as far as pipeline
components are concerned. You'd see exactly the same
pipelines and stages there too.

Regards.
>-----Original Message-----
>Hello, I should have mentioned that we're using CS2000,
and I don't think
>the elements you describe below are available. Do you
happen to know how to
>do it in 2000?
>
>THank you!
>
>
>
>"Ravi Shankar" <shankar.nospam@hp.com> wrote in message
> news:1baeb01c45049$63239ed0$a001280a@phx
.gbl... 
somewhere[vbcol=seagreen] 
to[vbcol=seagreen] 
0.9)[vbcol=seagreen] 
the[vbcol=seagreen] 
so[vbcol=seagreen] 
>
>
>.
>






[ Post a follow-up to this message ]



    Re: Pipeline scriptor?  
Dean J Garrett


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


 
06-21-04 04:28 AM

Hi,

I know about the new CS2002 feature, but we're stuck in CS2000 for the
forseeable future. As we inherited this application, we believe that the
prior developer tailored (removed items) the pipeline structure. When we
tried to add them back, we not seeing the
'ItemTotalsAndDiscountTotalsScriptor' that was mentioned.

??? Thank you ???




"David Messner [MSFT]" <davidme@online.microsoft.com> wrote in message
news:g6qLDK#UEHA.3468@cpmsftngxa10.phx.gbl...
> Actually the discounting pipeline components have changed significantly
> between CS2000 and CS2002.  In factor, order-level discounting is one of
> the major new features in CS2002.  CS2002 + Feature Pack 1 has Coupon
> features that will do what you want out of the box.
>
> I agree with Ravi about storing away the amount of discount and applying
> that to the subtotal after the tax/shipping computation.
>
> Note that in CS2002 (and FP1), order-level discounts split across the line
> items and deducted as discounts per line item before the subtotal stage.
> So they are automatically taken into account for tax/shipping.
>
> -djm
> --
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> You assume all risk for your use. © 2004 Microsoft Corporation.  All
rights
> reserved.
>
> --------------------
> Content-Class: urn:content-classes:message
> From: "Ravi Shankar" <shankar.nospam@hp.com>
> Sender: "Ravi Shankar" <shankar.nospam@hp.com>
> References: <OFdEuv$TEHA.2844@TK2MSFTNGP12.phx.gbl>
> <1baeb01c45049$63239ed0$a001280a@phx.gbl>
> <#coTInwUEHA.4064@TK2MSFTNGP11.phx.gbl>
> Subject: Re: Pipeline scriptor?
> Date: Wed, 16 Jun 2004 05:09:51 -0700
> Lines: 83
> Message-ID: <1ce7001c4539a$d39569b0$a601280a@phx.gbl>
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
> X-Newsreader: Microsoft CDO for Windows 2000
> thread-index: AcRTmtOVs3VdkDGaTJ2w37eTyq5jDA==
> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
> Newsgroups: microsoft.public.commerceserver.general
> Path: cpmsftngxa10.phx.gbl
> Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14004
> NNTP-Posting-Host: tk2msftngxa14.phx.gbl 10.40.1.166
> X-Tomcat-NG: microsoft.public.commerceserver.general
>
> No difference between versions as far as pipeline
> components are concerned. You'd see exactly the same
> pipelines and stages there too.
>
> Regards. 
> and I don't think 
> happen to know how to 
> somewhere 
> to 
> 0.9) 
> the 
> so 
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:33 PM.      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