28, May 2012

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

 
Webdigity webmaster forums
[ 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
Instabuck - The easy way to sell digital products online

Author Topic: connect the db_cart with an existing products table and products list  (Read 3524 times)
Chicken-run Manager
*
Gender: Male
Posts: 9
66 credits
Members referred : 0



« on: Jul 18, 2006, 05: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Jul 18, 2006, 10: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: Male
Posts: 9
66 credits
Members referred : 0



« Reply #2 on: Jul 28, 2006, 03: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Jul 28, 2006, 03: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.

Chicken-run Manager
*
Gender: Male
Posts: 9
66 credits
Members referred : 0



« Reply #4 on: Jul 29, 2006, 12: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Jul 29, 2006, 02: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...

Chicken-run Manager
*
Gender: Male
Posts: 9
66 credits
Members referred : 0



« Reply #6 on: Aug 01, 2006, 09: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #7 on: Aug 01, 2006, 10: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

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

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?
May 28, 2012, 12:18:30 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!






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