[ic] RE: mv_ib and overriding default catalog

Jerry Brady interchange-users@icdevgroup.org
Thu Oct 10 15:43:09 2002


Mike Heins wrote:

>You would set "ProductFiles" in the user profile to only be 
>for the allowed catalog.
>
>If you have a profile running (ala what is in etc/after.cfg) 
>then just add:
>
>	ProductFiles => [ 'products' ],
>
>or 
>
>	ProductFiles => [ 'spot_products' ],
>
>depending on which they are.

Mike,

I pushed forward with a poor design for this particular client because
of my lack of familiarity with all of the wonderful features of
Interchange.  I managed to get it working for now. I manually remove
mv_order_item and mv_order_quantity from the CGI hash for sku's that are
not permitted using an mv_click executed block of code.

Nevertheless, just the clarify.  My life would have been a lot simpler
if I had only done a few things:

Add two columns to the userdb table: normal_user, spot_user
Make appropriate modifications to the Admin UI to set these upon account
creation.
Add the following to after.cfg:

Profile normal_user <<EOR
{
   ProductFiles => [ 'products' ],
}

Profile spot_user <<EOR
{
   ProductFiles => [ 'spot_products' ],
}

Thanks for the info!
- Jerry