Content Selection Framework - targeting context

This is Interesting: Free IT Magazines  
Home > Archive > Content Selection Framework > May 2004 > targeting context





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 targeting context
Quinn Wilson

2004-04-21, 6:39 pm

Hi, I'm trying to implement free shipping to a list of addresses. (
our retail stores )
In order to do this I set up a campaign item and gave free shipping to
anyone with targeting Context property (boolean) called "FreeShipTo"
set to true.

Then I programatically set the property (
CommerceContext.Current.TargetingSystem.TargetingContextProfile("FreeShipTo").Value
= True )


First I realized that this value gets clobbered every page view, so I
came up with a test to run right before the total pipeline to set this
value.

Now this value isn't saved when I run the checkout pipeline. This I
guess makes sense to me if the TargetingContext is supposed to be for
passing runtime values that are ephemeral.

Can anyone suggest a way to make this work?
David Messner [MSFT]

2004-04-22, 2:37 am

Hi Quinn

I'm not clear on what you're really trying to solve here. If you want the
"FreeShipTo" property to be stored with the user, then extend the user
profile instead of using TargetingContext. TargetingContext is not a
persistent profile. It exists only in the context of a single request.

-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.
--------------------
From: Quinn.Wilson@nygard.com (Quinn Wilson)
Newsgroups: microsoft.public.commerceserver.campaigns_csf
Subject: targeting context
Date: 21 Apr 2004 15:01:34 -0700
Organization: http://groups.google.com
Lines: 20
Message-ID: <43724709.0404211401.3eb41708@posting.google.com>
NNTP-Posting-Host: 64.4.94.50
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1082584894 6509 127.0.0.1 (21 Apr 2004 22:01:34
GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 21 Apr 2004 22:01:34 +0000 (UTC)
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA06.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08
.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!news-spur1.maxwell.syr.edu!n
ews.maxwell.syr.edu!postnews1.google.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl
microsoft.public.commerceserver.campaigns_csf:2609
X-Tomcat-NG: microsoft.public.commerceserver.campaigns_csf

Hi, I'm trying to implement free shipping to a list of addresses. (
our retail stores )
In order to do this I set up a campaign item and gave free shipping to
anyone with targeting Context property (boolean) called "FreeShipTo"
set to true.

Then I programatically set the property (
CommerceContext.Current.TargetingSystem.TargetingContextProfile("FreeShipTo"
).Value
= True )


First I realized that this value gets clobbered every page view, so I
came up with a test to run right before the total pipeline to set this
value.

Now this value isn't saved when I run the checkout pipeline. This I
guess makes sense to me if the TargetingContext is supposed to be for
passing runtime values that are ephemeral.

Can anyone suggest a way to make this work?

Quinn Wilson

2004-04-22, 10:50 am

Sorry I wasn't clear.
I have a list of addresses which I will present to all users and if
any user picks one of these addresses I want to ship to that address
for free. If they choose to ship to thier home address or some other
address of their choosing I want the normal shipping charges to apply.

I picked up a couple of threads regarding how to tackle this problem
and they all seemed to suggest that I use the targeting context to
make this work. I'm coming to the conclusion that this is not the best
idea. However I still need to provide free shipping to these addresses
and I'm unsure how to best accomplish this.

I implemented a coupon entry field which looks up coupon codes and
adds the appropriate discount to the discounts_clicked simplelist. I
figure the solution to my problem must be something similar, but I
can't figure it out. You see I want to grant the free shipping if they
chose to ship to one of the addresses in my list, but if they change
it again I want to remove the free shipping.

Has anyone done something simmilar

davidme@online.microsoft.com (David Messner [MSFT]) wrote in message news:<TPJReODKEHA.3088@cpmsftngxa10.phx.gbl>...
> Hi Quinn
>
> I'm not clear on what you're really trying to solve here. If you want the
> "FreeShipTo" property to be stored with the user, then extend the user
> profile instead of using TargetingContext. TargetingContext is not a
> persistent profile. It exists only in the context of a single request.
>
> -djm

Zoe Hart

2004-04-23, 8:36 am

I think that TargetingContext profile is still a good way to go. I'm
assuming you capture the ship-to address, probably as an OrderAddress within
the order. I would have the code, right before the total pipeline, look in
the order to determine if they're going to one of the specified ship-to's
and, if they are, set the TargetingContext free shipping flag to true. If
the addresses aren't easy to identify, you could just store a flag in the
order (as long as you have code to clear the flag if and when they change
the address. Bottom line is you want to capture the state of their ship-to
choice somewhere (and the order is a likely place) and then check that state
immediately before running the pipeline. I did a similiar thing with ship-to
dates. One of our sites provides shoppers the option to specify when they
want something to ship. We put a promotion in place but it only applied if
they shipped before a certain date. So we captured the ship date in the
order (as we would anyway for order processing) and then copied it into the
TargetingContext profile before running the pipeline. Works like a charm.

Zoe Hart

"Quinn Wilson" <Quinn.Wilson@nygard.com> wrote in message
news:43724709.0404220601.152804e@posting.google.com...
> Sorry I wasn't clear.
> I have a list of addresses which I will present to all users and if
> any user picks one of these addresses I want to ship to that address
> for free. If they choose to ship to thier home address or some other
> address of their choosing I want the normal shipping charges to apply.
>
> I picked up a couple of threads regarding how to tackle this problem
> and they all seemed to suggest that I use the targeting context to
> make this work. I'm coming to the conclusion that this is not the best
> idea. However I still need to provide free shipping to these addresses
> and I'm unsure how to best accomplish this.
>
> I implemented a coupon entry field which looks up coupon codes and
> adds the appropriate discount to the discounts_clicked simplelist. I
> figure the solution to my problem must be something similar, but I
> can't figure it out. You see I want to grant the free shipping if they
> chose to ship to one of the addresses in my list, but if they change
> it again I want to remove the free shipping.
>
> Has anyone done something simmilar
>
> davidme@online.microsoft.com (David Messner [MSFT]) wrote in message

news:<TPJReODKEHA.3088@cpmsftngxa10.phx.gbl>...[vbcol=seagreen]
the[vbcol=seagreen]


Quinn Wilson

2004-05-11, 8:20 pm

Thanks Zoe. I've taken your suggestion and it's working great.

"Zoe Hart" <Zoe.Hart.NoSpam@Competitive.com> wrote in message news:<#5aXZ2SKEHA.3580@TK2MSFTNGP10.phx.gbl>...
> I think that TargetingContext profile is still a good way to go. I'm
> assuming you capture the ship-to address, probably as an OrderAddress within
> the order. I would have the code, right before the total pipeline, look in
> the order to determine if they're going to one of the specified ship-to's
> and, if they are, set the TargetingContext free shipping flag to true. If
> the addresses aren't easy to identify, you could just store a flag in the
> order (as long as you have code to clear the flag if and when they change
> the address. Bottom line is you want to capture the state of their ship-to
> choice somewhere (and the order is a likely place) and then check that state
> immediately before running the pipeline. I did a similiar thing with ship-to
> dates. One of our sites provides shoppers the option to specify when they
> want something to ship. We put a promotion in place but it only applied if
> they shipped before a certain date. So we captured the ship date in the
> order (as we would anyway for order processing) and then copied it into the
> TargetingContext profile before running the pipeline. Works like a charm.
>
> Zoe Hart

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com