[ic] acces global inside Common Adust

interchange-users@lists.akopia.com interchange-users@lists.akopia.com
Mon May 21 12:57:00 2001


On Mon, May 21, 2001 at 05:28:55PM +0100, Murray Gibbins wrote:
> 
> in a comon Adjust line how do I call a Global funcion. I.e. I has a global
> function defined in interchange.cfg call do_stuff();
> 
> and I want to do some thing like 
> 
> CommonAdjust	&do_stuff()
> 

We do it like this:
CommonAdjust    &MV::Pricing::giftbasket, ;specials:price:, ;products:price:, &MV::Pricing::client

where MV/Pricing.pm is somewhere in your @INC.

I'm not sure if this runs afoul of Safe in a standard
catalog or not.  Plus we are still mv4.03.  YMMV.


> 
> -- 
>   ____
>   \__/    Murray Gibbins             murray@scotweb.ltd.uk
>   /  \    Programmer
> _ \__/ _  ================================================
> \\ || //  Scotweb Limited,             info@scotweb.ltd.uk
>  \\||//   13a Albert Terrace,    http://www.scotweb.ltd.uk
>   \||/    Edinburgh EH10 5EA   Tel: +44 (0)  131 270 82 33
>    ||     Scotland. Europe.    Fax: +44 (0) 7020  93 49 04
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users

-- 

Christopher F. Miller, Publisher                             cfm@maine.com
MaineStreet Communications, Inc         208 Portland Road, Gray, ME  04039
1.207.657.5078                                       http://www.maine.com/
Content management, electronic commerce, internet integration, Debian linux