28, May 2012

How i can make db_cart to work with data from access_user class? - 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: How i can make db_cart to work with data from access_user class?
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: How i can make db_cart to work with data from access_user class?  (Read 2070 times)
I crack Photoshop!
*
Gender: Female
Posts: 3
22 credits
Members referred : 0

beginner


« on: Apr 25, 2007, 05:26:58 am »

Hello Olaf!
Thank you for message.And sorry i tryed to contact you directly.Just im not so good to surf around forums...I sow some archive about validate class and i found nesesery information and fix the problem.Now feeback form is working.Now i need some advice how to make db_cart to work with already existing data from access_user class tables if is posible?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Apr 25, 2007, 07:53:55 am »

Hello Olaf!
Thank you for message.And sorry i tryed to contact you directly.Just im not so good to surf around forums...I sow some archive about validate class and i found nesesery information and fix the problem.Now feeback form is working.Now i need some advice how to make db_cart to work with already existing data from access_user class tables if is posible?

Actually the script is written to use it with access_user:

check the code inside "db_cart_checkout_example.php"

Code:
$myCheckout = new db_cart(8000);

the number 8000 could be the user id from AU

this code snipped demonstrates how to read the file from the profile table:

Code:
if (!$myCheckout->check_return_shipment()) {
// get the external customer data here
$cust_conn = mysql_connect(DB_SERVER, DB_USER, DB_PASSWORD);
mysql_select_db(DB_NAME, $cust_conn);
// the exampple query for customer data (the default shipment address)
$cust_sql = sprintf("SELECT name, name2, address, address2, postal_code, place, country FROM db_cart_example_customer WHERE cust_no = %d", $cust_no);
$cust_result = mysql_query($cust_sql) or die(mysql_error());
$cust_obj = mysql_fetch_object($cust_result);
$myCheckout->ship_name = $cust_obj->name;
$myCheckout->ship_name2 = $cust_obj->name2;
$myCheckout->ship_address = $cust_obj->address;
$myCheckout->ship_address2 = $cust_obj->address2;
$myCheckout->ship_pc = $cust_obj->postal_code;
$myCheckout->ship_city = $cust_obj->place;
$myCheckout->ship_country = $cust_obj->country;
mysql_free_result($cust_result);
$myCheckout->insert_new_shipment();
} else {
$myCheckout->set_shipment_data();
}



of course you can use the methods from AU here and you need to protect pages if needed

I crack Photoshop!
*
Gender: Female
Posts: 3
22 credits
Members referred : 0

beginner


« Reply #2 on: Apr 26, 2007, 04:21:25 am »

Thank you! I will check up.
I crack Photoshop!
*
Gender: Female
Posts: 3
22 credits
Members referred : 0

beginner


« Reply #3 on: May 02, 2007, 07:42:21 am »

Hello Olaf,sorry but I didnt get it...Im maybe too much beginer ,i was trying hard in many ways,but all the time got some errors...
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: May 02, 2007, 08:50:34 am »

Hello Olaf,sorry but I didnt get it...Im maybe too much beginer ,i was trying hard in many ways,but all the time got some errors...
Huh

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6444
Tags : How i can make db_cart to work with data from access_user class? 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: How i can make db_cart to work with data from access_user class?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 08:36:54 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.