Sublime directory Surf the web anonymous Pagerank Monitor


Possible bug? getting 2 orders (1 more then normal)

MartinTeefy
Tue 15 August 2006, 04:42 pm GMT +0200
I did a test run of your code and adding me as a customer (id =1). There
maybe a bug.

Any table with example as part of it's name i removed example from the
name when I created the tables and edited the php accordingly but
when I ordered some products (from the new 6 added) the code produced 2
records in db_cart_orders instead of one and the second new record had a
default value for the processed_on column (the first record was OK).

Thanks for your time.

olaf
Tue 15 August 2006, 05:24 pm GMT +0200
If you use the cart without a customer database you need to replace the variables between the brackets:

new db_cart(123)

with some number, use the same number on all example pages (think that these are different somewhere)

MartinTeefy
Tue 15 August 2006, 05:30 pm GMT +0200
Olaf,

I created the customer as per your example (just dropped the word example from the table names) and edited the word example out of the php files. Your code referred to cust_no of 1 (which I am in the customer table) so do we still have a bug?

Thanks

olaf
Tue 15 August 2006, 05:34 pm GMT +0200
don't use a customer table is you don't use a customer id.

I modified my application:
db_cart_example.php
$myCart = new db_cart(8000);

db_cart_continue.php
$myCart = new db_cart(8000);

and
db_cart_checkout_example.php
$myCheckout = new db_cart(8000);


then I ordered two times some example products and processed them, then I checked the database and in the order table are two records (both for customer 8000)

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