5, September 2008

connect the db_cart with an existing products table and products list - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  DB_cart Class (Moderator: Olaf)
Topic: connect the db_cart with an existing products table and products list
« previous next »
Pages: [1] Print

Author Topic: connect the db_cart with an existing products table and products list  (Read 1725 times)
Chicken-run Manager
*
Gender: Male
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: Male
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.


Last blog : Is your website is down? Know before your visitors do!
Chicken-run Manager
*
Gender: Male
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: Male
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.


Last blog : Is your website is down? Know before your visitors do!
Chicken-run Manager
*
Gender: Male
Posts: 9
66 credits
Members referred : 0



« Reply #4 on: Jul 29, 2006, 01:50:26 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.

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 Huh?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6309
38674 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Jul 29, 2006, 03:37:01 PM »

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...


Last blog : Is your website is down? Know before your visitors do!
Chicken-run Manager
*
Gender: Male
Posts: 9
66 credits
Members referred : 0



« Reply #6 on: Aug 01, 2006, 10:30:06 AM »

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 Huh
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6309
38674 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Aug 01, 2006, 11:32:36 AM »

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 Huh

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


Last blog : Is your website is down? Know before your visitors do!
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3321
Tags : php design html forums mysql Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  DB_cart Class (Moderator: Olaf)
Topic: connect the db_cart with an existing products table and products list
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Sep 05, 2008, 08:35:36 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 36.294
Total Topics: 7.477
Total Members: 3.899
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: speedy5044

32 Guests, 3 Users online :

14 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.