[ic] Re: Setting price_level in userdb
Jamie Neil
interchange-users@icdevgroup.org
Fri May 23 13:15:01 2003
> -----Original Message-----
> From: interchange-users-admin@icdevgroup.org
> [mailto:interchange-users-admin@icdevgroup.org]On Behalf Of
> gary@geton.com
> Sent: 23 May 2003 17:42
> To: interchange-users@icdevgroup.org
> Subject: [ic] Re: Setting price_level in userdb
>
>
>
> I assume you have created a price_level field in the userdb table?
> You may need to copy the after.cfg file to catalog_dir/etc.
> Foundation Demo places it here:(
> catalog_dir/templates/sampledata/tools/etc/after.cfg)
> From there you can see the dealer, distributor entires ....
>
> eg.
>
> Profile platinum <<EOR
> {
> CommonAdjust => <<EOF,
>
> pricing:q5,q10:,
> ;:price,
> ;:price:mv_sku,
> ;$,
> ==:options,
> -5%
> EOF
> NonTaxableField => 'nontaxable',
> }
> EOR
>
>
> Restart IC
> You will have to make sure the new price_level field is available to edit
> via the admin tool and set the options (meta data) with the price levels
> you have created
> eg.
> =Retail,
> platinum=platinum,
> gold=gold,
> silver=silver
>
> The you should be able to give a customer the new price level.
>
> >The custom profile "stgc" is in catalog.cfg and I have tried it with and
> >without the "scratch price_level" directive.
>
> Make sure catalog.cfg has:
> # Allow a template to drop in some ending config.
> include etc/after.cfg
>
> >I've now run out of ideas :(
>
> This is how I normally do it anyways. Hope this helps.
It's not dealer pricing itself that's the problem. I got this working
without any problems at all, and I can easily modify the price_level using
the admin screen or table editor.
What I just can't seem to do is modify the price_level field in an IC page
without resorting to using [data table=userdb field=price_level
key="[session username]" value="newvalue"]. I would have expected to be able
to do this using the [userdb] tag (it seems to work for all the other userdb
fields), but no matter how I try it it doesn't seem to work.
It's not a biggie, just me being pedantic I guess :)
Thanks,
Jamie
>
> Gary Benson
> Geton.com Technologies Inc.
> gary@geton.com
> www.geton.com
>
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>