[ic] Building a mall - detailed Question

Mike Heins mikeh@minivend.com
Tue, 19 Dec 2000 05:22:46 -0500


Quoting Mike Heins (mikeh@minivend.com):
> Quoting Murray Gibbins (Murray@scotweb.ltd.uk):
> > "Lattus, Ronald" wrote:
> > > 
> > > Hello Murray!
> > > 
> > > What we need is the same Greg Cope asked for:
> > > 
> > > Different produkt lists (~product catalogs) which have there own admin-ui
> > > (so that the list can be edited by different merchants), but share the
> > > customer-ui, the basket and so on (so that for the customer they apear as
> > > one themed store).
> > 
> > > 
> > > What's wrong?
> > 
> 
> Subcatalogs may be broken in Interchange, I just discovered. I have enteed
> a bug report and eventually I will look at why.
> 

This patch to lib/Vend/Config solves the problem (it is in CVS):


Index: lib/Vend/Config.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Config.pm,v
retrieving revision 1.26
retrieving revision 1.27
diff -r1.26 -r1.27
3c3
< # $Id: Config.pm,v 1.26 2000/11/26 08:02:08 heins Exp $
---
> # $Id: Config.pm,v 1.27 2000/12/19 10:08:07 heins Exp $
107c107
< $VERSION = substr(q$Revision: 1.26 $, 10);
---
> $VERSION = substr(q$Revision: 1.27 $, 10);
1662,1664c1662,1666
< 							return (undef, "No default search file!") 
< 								unless scalar @out;
< 							$C->{Variable}{MV_DEFAULT_SEARCH_FILE} = \@out;
---
> 							unless (scalar @out) {
> 								return 1 if $C->{BaseCatalog};
> 								return (undef, "No default search file!") 
> 									unless scalar @out;
> 							}

-- 
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <heins@akopia.com>

My wife is great.  She doesn't care where I go, just as long as I don't
have any fun.  -- Lee Trevino