Sublime directory Surf the web anonymous Pagerank Monitor


connect the db_cart with an existing products table and products list

kerbusar
Tue 18 July 2006, 06:45 pm GMT +0300
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

olaf
Tue 18 July 2006, 11:13 pm GMT +0300
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.

kerbusar
Fri 28 July 2006, 04:43 pm GMT +0300
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 ?

olaf
Fri 28 July 2006, 04:58 pm GMT +0300
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.

kerbusar
Sat 29 July 2006, 01:50 pm GMT +0300
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.

something like this. i have create a php file. similar to yours db_cart_example.php and

in a page my_products where a  i have colect from a dhtml menu .../my_products.php?prodsubcatid=6

<div><?php include("/classes/db_cart/my_db_cart.php"); ?></div>

As, i say to you is my first aproach to deploy cart. and i have a specific way of think and i want to create a specific template ????

olaf
Sat 29 July 2006, 03:37 pm GMT +0300
Quote
<div><?php include("/classes/db_cart/my_db_cart.php"); ?></div>

This is the problem, check the structure of the example files and seperate the files this way...

kerbusar
Tue 1 August 2006, 10:30 am GMT +0300
Quote
<div><?php include("/classes/db_cart/my_db_cart.php"); ?></div>

This is the problem, check the structure of the example files and seperate the files this way...

what way ???

olaf
Tue 1 August 2006, 11:32 am GMT +0300
Quote
<div><?php include("/classes/db_cart/my_db_cart.php"); ?></div>

This is the problem, check the structure of the example files and seperate the files this way...


what way ???

I think you structure is like this:

<html>
...
<body>
...
<?php include("/classes/db_cart/my_db_cart.php"); ?>
...
</body>
</html>


this will not work, check the examples there is the important code above the html tags

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional