elogicmedia Posted January 9, 2006 Posted January 9, 2006 Hi, I have modified my cart to collect the details from the address book and place into another database to use else where. Anyway my problem is if someone chooses a different address from the page: checkout_shipping_address.php then the original details are still taken else where rather then the new address details. SO I was wondering where in the database is it stored to tell which address is to be used for the shipping? Like a customer has 2 shipping addresses (1531, 1532 - from address_book table) when I change to 1532 from the orignal does this get updated in a DB/table? If I could find this then I could adjust my mods to suit multiple shipping addresses. Thankyou
buzuc Posted January 9, 2006 Posted January 9, 2006 these informations are stored in the table "adress_book". MS2 2.2 fr + Manufacturer copy (5 manufacturers - modified to make it works) + More pics 6 + FCK Editor + zones shipping (modified without weight) + My contribution : Shopping Cart Management for Unique Products I apologize in advance for my poor English I'm French !
elogicmedia Posted January 9, 2006 Author Posted January 9, 2006 Thanks, I did find where the different addresses are stored but I wanted to know where is the oder details which assigns which address to use. Like somewhere it must say using 1532 instead of 1531.. like an order details table Cheers
elogicmedia Posted January 10, 2006 Author Posted January 10, 2006 After still looking I cannot find where this is stored, is it by any chance stored within a session rather then a table field? Then once the cart is complete the correct shipping address is taken out of the address_book table and stored within the orders table??? Cheers
evalguy Posted January 10, 2006 Posted January 10, 2006 It appears that when the address is selected during the checkout process, osC copies the chosen address details into the orders table, in the fields delivery_name, delivery_company, delivery_street_address ... etc. Each order actually has 2 addresses -- customer and delivery addresses. Cheers, -Neil.
elogicmedia Posted January 11, 2006 Author Posted January 11, 2006 Thanks Neil, What I'm a little unsure about is what happens if they user changes their mind and selects their other shipping address, does the system update the record each time this is done? ON this page: checkout_shipping_address.php
elogicmedia Posted January 11, 2006 Author Posted January 11, 2006 ALSO this does not make sence to me as I think that the orders record is only placed once the order is complete, where is this stored in the meantime? Thankyou
elogicmedia Posted February 14, 2006 Author Posted February 14, 2006 As it's been a few weeks I thought quick bump would be in order, still could not find a solution to this. Thanks
elogicmedia Posted February 16, 2006 Author Posted February 16, 2006 OK after re-reading this I found that the details are stored within the order table as it was stated above (thankyou) Now the problem is this is only stored in there once the order is completed. Where is it stored before this such as on the checkout_confirmation.php page? Thanks Looking into the code it seems this is where I need to find out what is happening: <?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br>'); ?> Cheers
Recommended Posts
Archived
This topic is now archived and is closed to further replies.