This is a discussion on Recover missing order info from DB within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Try this instead of the previous post. I should have used LEFT JOIN instead of JOIN. This way, both orders ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Some people may need products attributes information. Here is the MySQL code to do that. Substitute the actual customer's id for . This SQL statement will find orders whether there are product attributes or not. SELECT cb.customers_basket_quantity, pd.products_name, pov.products_options_values_name FROM customers_basket cb LEFT JOIN products_description pd ON pd.products_id=cb.products_id LEFT JOIN customers_basket_attributes cba ON cba.customers_id=cb.customers_id LEFT JOIN products_options_values pov ON cba.products_options_value_id=pov.products_options _values_id WHERE cb.customers_id ='' AND pd.language_id = '1' More...
__________________ Michael Sasek osCMax Developer
|
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Recover missing order info from DB | michael_s | New osCommerce Contributions | 0 | 10-22-2008 09:00 AM |
| Recover missing order info from DB | michael_s | New osCommerce Contributions | 0 | 10-03-2007 01:12 AM |
| Customer Info not in order (name, address, etc) | irr1449 | osCMax v2 Installation issues | 2 | 06-06-2007 04:39 AM |
| order details missing products | caz | osCMax v2 Installation issues | 15 | 04-23-2007 12:39 PM |
| Order Editor missing 'shipping_tax' column in orders table | cbp | osCMax v2 Installation issues | 9 | 01-02-2007 09:30 AM |