[ic] resetting user [profile]

Mike Heins interchange-users@icdevgroup.org
Thu Apr 10 11:24:01 2003


Quoting Naomi Taylor (naomi_koppel@yahoo.com):
> Hi all,
> 
> I scoured the docs and the list archives trying to figure out how to
> properly use this very useful [profile] tag and there's one piece that
> I just can't figure out: how to reset it after I change it. I've set
> up profiles with unique CommonAdjusts named it, dist1, dist2, and
> dist3 in my after.cfg along with a default CommonAdjust not in a
> profile and all of my prices are working correctly for the right user
> type. If a user logs in whose price_level is dist1, their prices
> automatically use the dist1 profile's CommonAdjust and it works
> perfectly.
>
> The site is enticing regular users to join a price club by displaying
> what the price would be if they joined the club. So, some prices on
> the page are following the default CommonAdjust and some need to use
> the it profile. My plan for accomplishing this is to change the
> profile to it, display the item/cart price using [subtotal] or
> [item-price], then change the profile back. Here are a few examples to
> show what works and where I run into trouble ([profile] displays the
> current value, [profile myprofile] changes the profile to myprofile)
> (#1 works as expected, #2 & #3 do not):
> 
> 1) not logged in, this:
> [profile]:[profile it][profile]:[profile dist1][profile]
> 
> results in this:
> :default-it:default-dist1
> 
> 2) reload page after changing that code to this:
> [profile][tmp newprofile]it[/tmp]:[profile scratch newprofile][profile]

I don't know where you got the idea you could just put "scratch newprofile"
anywhere you want and get that back.

	[profile name="[scratch newprofile]"]

would be what is needed.

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.513.523.7621      <mike@perusion.com>

Prove you aren't stupid.  Say NO to Passport.