Date: 12/09/99
- Next message: Wolf Giesen: "Re: [PHPLIB] cart questions"
- Previous message: Martin Decker: "[PHPLIB] cart questions"
- In reply to: Martin Decker: "[PHPLIB] cart questions"
- Next in thread: Wolf Giesen: "Re: [PHPLIB] cart questions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi --
In the one site where we needed to store additional information, I added 4
characters to the beginning of the product id number, 2 for each of the
additional attributes I needed to save. Then, by extending cart in local,
I added a couple of substr($art,0,2) and substr($art,2,2) lines to pull out
the added data. Works like a charm on a 250,000 record database ...
Good luck!
Bob.
At 09:02 AM 12/9/99 , you wrote:
>Hello everybody,
>
>Unfortunately, nobody could answer my question of how to extend the cart
>to hold additional attributes.
>I need to modify cart.inc, because I have an additional field called
>"stock". When the user buys 5 pieces
>of product 1 from stock1 and 2 pieces from stock2, the orders are not
>allowed to be summed up! There
>have to be two seperate entries in the cart.
>
>How can I do that?
>
>I would greatly appreciate any help!
>
>Thanks in advance,
>
>Martin
>
>
>*****************************************
>Martin Decker, martin.decker <email protected>
>Telekommunikationstechnik und -systeme
>Fachhochschule Salzburg
>Jakob-Haringer-Str. 1a/II/12
>Tel. 0664 5775697
>
>-
>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.
-
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: Wolf Giesen: "Re: [PHPLIB] cart questions"
- Previous message: Martin Decker: "[PHPLIB] cart questions"
- In reply to: Martin Decker: "[PHPLIB] cart questions"
- Next in thread: Wolf Giesen: "Re: [PHPLIB] cart questions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

