[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] How to define Default price in not product database
jojo@blackpoint.de wrote:
>
> I'm wanting to know, how to change the
>
> "PriceField ....."
>
> dynamically per pages or per "dealer" too!
>
> Any tips, hints and suggestions are very welcome.
>
> Thanks!
>
> Joachim
You can find an example of this in the default "construct" demo via an
Autoload directive in catalog.cfg. Autoload is code executed at the time
of any page request before anything else is executed. In the "construct"
example:
Autoload <<EOR
[perl]
if($Scratch->{dealer}) {
$Config->{PriceField} = 'no_price';
}
[/perl]
EOR
There's no reason you can't add in current page conditionals, or
anything else you might be able to think of.
--
Mark Johnson
Senior Developer - Professional Services
Red Hat, Inc.
E-Business Solutions
markj@redhat.com
703-456-2912
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users