Date: 11/10/99
- Next message: Bob Strouper: "RE: Re: Re: [PHPLIB] input type file: oohforms"
- Previous message: Kristian Koehntopp: "Re: [PHPLIB] Retaining sessionid through header()?"
- In reply to: Howie Oakes: "[PHPLIB] Looking for someone to write a specific cart() function for me."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Nov 09, 1999 at 07:30:24PM -0500, Howie Oakes wrote:
> Here is an outline of the functionality:
>
> - scan a cart() array, and for each item get the weight of the item from the db
> - create a new array with each individual item and it's weight (qty = 1)
> - add these items to an order array until the weight is 70 lbs.
> - combine similar items into a new array that looks like a typical cart() array.
> - repeat, creating a new order array until all the items have been added.
What is the operative definition for "similar" in your
specification. If "the next element in the cart" is enough, this
is trivial. Otherwise multiple passes through the items may be
necessary to find matching elements.
Kristian
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Bob Strouper: "RE: Re: Re: [PHPLIB] input type file: oohforms"
- Previous message: Kristian Koehntopp: "Re: [PHPLIB] Retaining sessionid through header()?"
- In reply to: Howie Oakes: "[PHPLIB] Looking for someone to write a specific cart() function for me."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

