Topic: connect the db_cart with an existing products table and products list (Read 1725 times)
Chicken-run Manager
Gender:
Posts: 9
66 credits Members referred : 0
« on: Jul 18, 2006, 06:45:26 PM »
Hello i am new to db_cart i have check all the files and the documentations but i have not found any instactions how i can put all the necessary code to an form that display a list of products. What i need to do show after i display a list of products in a form to go db_cart_example.php with all the necessary information with or with out a customerid
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6309
38674 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: Jul 18, 2006, 11:13:58 PM »
check this information from my website: DB_cart Class is a MySQL shopping cart script that can be used with third party product catalogues and membership systems. The MySQL database structure is neutral to existing systems.
Inside the file "db_cart_example.php" is an example how to build a product list, this is not documented because the class is orig. written for users with an existing product catalog. If you have a problem with the presentation of MySQL data you should post this problem at PHP forum of webdigity.
Chicken-run Manager
Gender:
Posts: 9
66 credits Members referred : 0
« Reply #2 on: Jul 28, 2006, 04:43:20 PM »
ok. i have study your files and try to deploy db_cart, my serious problem is this, i select the products from products table with a category id. Then, i am receiving this message
Warning: session_start(): Cannot send session cache limiter - headers already sent in ....... /classes/db_cart/db_cart_class.php on line 23
where is the line: if (!session_id()) session_start();
how i can avoid it?
what happens if the customer table is empty ?
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6309
38674 credits Members referred : 374
It's time to use PHP5!
« Reply #3 on: Jul 28, 2006, 04:58:06 PM »
Quote
Warning: session_start(): Cannot send session cache limiter - headers already sent in ....... /classes/db_cart/db_cart_class.php on line 23
sounds like you using the script inside the html.. include the class file above all code.