[ic] BUG: missing counter file not reported

Murray Gibbins Murray@scotweb.ltd.uk
Fri, 09 Mar 2001 09:11:23 +0000

cfm@maine.com wrote:

> > I'll have to get back to you on that, I've just noted some real weirdness in
> > Order.pm thatI've asked Mike about, coz even _I_ can work out whats going on
> > :-). Also It seems that a Route counter gets incremented even if you ask it not
> > to in the catalog.cfg by adding "Route whatever increment  0" to the end!!!!
> >
> > However my gut tells me that your set up won't be affected, it the call goes
> > through to counter_number() and the files does not exists and your not doing
> > some really complicated mall stuff then you should not be affected. It only
> > becomes a problem it you are running n shops from n different domains with n
> > different routes but you want all shops to be able of handleing all the other
> > shops products. I.e. purchase products from shops on different domains but
> > chechout in just one of them and have all your products dealt with correctly.
> That's what we do, only we route the orders outside of minivend.  :-)

H'm the offending routine is Order::route_order, I think I've solved it by
changing one block and removing an if/then elsewhere in the routine.

Check out my patch ....


I've tested it on two mall setups and the order numbers for each route are now
independant of each other inside a cataloge. It is now important to get the
counter and increment arguments for each route correct in the catalog.cfg file.
Counters will only be incremented for orders containing products that have that
route attached to them.

I'm still trying to find out why the $main->{counter} is used. And the addidtion
of a + unary operator has me foxed :-)



  \__/    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