Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11
    Join Date
    Feb 2012
    Posts
    77
    Plugin Contributions
    0

    Default Re: Combining Multiple Database Customer Tables

    I'm confused again. :-(
    I am looking for product ID numbers in the database table. The only place that I see the correct ID numbers is in the zen_products_description table. I can't find a table that matches up the customer's name (or customer number) with the product ID. I see an orders_id, but I can't find that referred to anywhere else.
    I can't understand how the order connects the 'customer' with the 'product ordered' and makes a connection between the two, in the database.
    All of my products in the catalog have unique ID's. I am trying to pull the product ID from the database (or the product name). Is it possible that I have not turned on the connection between the product and the product ID? With no mention of product id, product name or even product description; these are the columns in the most comprehensive table, zen_orders:
    orders_id customers_id customers_name customers_company customers_street_address customers_suburb customers_city customers_postcode customers_state customers_country customers_telephone customers_email_address customers_address_format_id delivery_name delivery_company delivery_street_address delivery_suburb delivery_city delivery_postcode delivery_state delivery_country delivery_address_format_id billing_name billing_company billing_street_address billing_suburb billing_city billing_postcode billing_state billing_country billing_address_format_id payment_method payment_module_code shipping_method shipping_module_code coupon_code cc_type cc_owner cc_number cc_expires cc_cvv last_modified date_purchased orders_status orders_date_finished currency currency_value order_total order_tax paypal_ipn_id ip_address dropdown gift_message checkbox COWOA_order

    I have tried using the wonderful 'developers tool kit', but that doesn't seem to point me to database tables.
    Last edited by abcschooldr; 12 Mar 2013 at 09:20 PM.

  2. #12
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Combining Multiple Database Customer Tables

    I think you will find these cross indexed between the orders table and the orders_products table
    Zen-Venom Get Bitten

  3. #13
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Combining Multiple Database Customer Tables

    Of all the order-related tables:

    orders
    orders_products
    orders_products_attributes
    orders_products_download
    orders_status
    orders_status_history
    orders_total

    orders_products holds the specific product information, cross-referenced to the orders table by the orders_id field.

  4. #14
    Join Date
    Feb 2012
    Posts
    77
    Plugin Contributions
    0

    Default Re: Combining Multiple Database Customer Tables

    Thank you Kobra for the response! Click image for larger version. 

Name:	zendata.jpg 
Views:	37 
Size:	19.8 KB 
ID:	12134
    My orders_products_id and orders_id numbers look 'unique', but my products_id column isn't pulling the ID number for the product correctly. 5 different courses under products_name, and all have a products_id of 4. Where is that information pulled from? It is pulling the correct price and products_name, but not the correct products_id for the product.
    Last edited by abcschooldr; 12 Mar 2013 at 10:05 PM.

  5. #15
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Combining Multiple Database Customer Tables

    Look at your products table & check the ID

    How were these entered - manually or via say easy populate?
    Zen-Venom Get Bitten

  6. #16
    Join Date
    Feb 2012
    Posts
    77
    Plugin Contributions
    0

    Default Re: Combining Multiple Database Customer Tables

    I see the orders_id referenced in both tables zen_orders_products and zen_orders. Shouldn't the products_id match the products_name in the orders_products table as referenced in the catalog? Shouldn't the products_id and the products_name match the information in the catalog? (snippet previous post)

    Click image for larger version. 

Name:	zencatalop.jpg 
Views:	40 
Size:	17.8 KB 
ID:	12135
    Last edited by abcschooldr; 12 Mar 2013 at 10:33 PM.

  7. #17
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Combining Multiple Database Customer Tables

    Are these variations added as attributes??

    Hard copy versus online
    Zen-Venom Get Bitten

  8. #18
    Join Date
    Feb 2012
    Posts
    77
    Plugin Contributions
    0

    Default Re: Combining Multiple Database Customer Tables

    No, they are individual products.

  9. #19
    Join Date
    Feb 2012
    Posts
    77
    Plugin Contributions
    0

    Default Re: Combining Multiple Database Customer Tables

    I see what you are saying. It is the products_id in the products_attributes table that is all 4's because they all have the same attributes. It isn't making reference to the id associated with the product itself.

  10. #20
    Join Date
    Feb 2012
    Posts
    77
    Plugin Contributions
    0

    Default Re: Combining Multiple Database Customer Tables

    So there isn't a table that lists both the product id ordered and the name of the person who ordered it. There is only a name associated with an order id, not a product id ordered.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v151 Combining Login Database
    By bottyz in forum General Questions
    Replies: 1
    Last Post: 7 Jan 2016, 03:07 PM
  2. Combining Product from Multiple Sites
    By bergernovelties in forum General Questions
    Replies: 1
    Last Post: 13 Nov 2013, 07:40 AM
  3. Create Database, Tables and Drop Database or Tables
    By elwood cordery in forum General Questions
    Replies: 3
    Last Post: 17 Aug 2009, 04:03 PM
  4. Advanced Search In Multiple database tables
    By Doddsey_65 in forum General Questions
    Replies: 1
    Last Post: 21 May 2009, 07:37 AM
  5. Multiple tax rates per state, combining
    By saiori in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 9 Mar 2009, 03:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg