Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Questions related to database tables

    Hi
    I have few questions related to tables in zencart so I am creating a new thread for it
    1. There is a table zen_order_products_download. What is the use of it?
    2. What is the purpose of column admin_level in zen_admin?

    Thanks

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Questions related to database tables

    If you have a download in the Order ... it would be handy to be able to give it to the customer ...

    The admin level was/is for different capabilities of an admin ...

    This was designed originally for sites to be able to "show off" their admin to someone and not get their shop destroyed ...

    Currently, there are a lot of things that should be "more secure" based on this admin _level so we do not encourage its use unless:

    1 you have a real clue what and why you are using it

    2 you go through the whole admin and add this feature to more areas as needed to prevent annihilation of your shop by someone playing or being malicious ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Questions related to database tables

    Thanks Ajeh

    Few more questions related to products etc tables:

    In the table zen_products what are these columns used for:
    products_virtual
    products_status
    products_quantity_order_min
    products_quantity_order_units
    products_priced_by_attribute
    product_is_free
    product_is_call
    products_quantity_mixed

    Also, products_discount_type field gets its value from products_discount_quantity table...Is that right? Is it a constraint set up on the table? Is there any way I can see in phpmyadmin the foreign key constraints?


    Also, for same product_id say 178 I can see 8 different records in the products_discount_quantity table. Does that mean that I can apply these discounts from time to time?
    Thanks

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Questions related to database tables

    Almost the entire database schema is documented in the wiki:
    http://www.zen-cart.com/wiki/index.p...atabase_Schema

    The products table fields you asked about are here:
    http://www.zen-cart.com/wiki/index.php/Table_products



    for same product_id say 178 I can see 8 different records in the products_discount_quantity table. Does that mean that I can apply these discounts from time to time?
    if you look at the individual records, you will see the different prices which may be applied as discounts when the different quantity levels are reached. These are built using the Products Price Manager in the admin.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Questions related to database tables

    Thanks for the links
    By 'different quantity levels', do you mean if the value of
    discount_qty=3 it means that if customer buys three products, he will get a discount as stated in the products_discount_quantity table?
    Thanks

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Questions related to database tables

    Quote Originally Posted by superprg
    By 'different quantity levels', do you mean if the value of
    discount_qty=3 it means that if customer buys three products, he will get a discount as stated in the products_discount_quantity table?
    Thanks
    Yes



    Are you writing a book ?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Questions related to database tables

    Quote Originally Posted by DrByte
    Yes

    Are you writing a book ?
    Not as of now :)

    PS: Would you like if I attempt to write one? :)

  8. #8
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Questions related to database tables

    Quote Originally Posted by superprg
    Not as of now :)

    PS: Would you like if I attempt to write one? :)
    Was just wondering what the basis behind all your technical questions was...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Questions related to database tables

    I stil havent understood how sorting works in Categories:
    Let us I have this for Category 'Hardware'
    Hardware-> (6)
    |_ CDROM Drives
    |_ Graphics Cards (2)
    |_ Keyboards (1)
    |_ Memory
    |_ Mice (2)
    |_ Monitors
    |_ Printers (1)
    |_ Speakers

    Now, in the database I have for category hardware, sort_order=1( and therefore it came on the top in the box)

    But for let us say sub categories CDROM Drives, Graphics Cards, sort_order=0

    What do I do in order to bring 'Graphics Cards' to top in the Hardware category?
    Thanks
    San

  10. #10
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Questions related to database tables

    Quote Originally Posted by superprg
    I stil havent understood how sorting works in Categories:

    Now, in the database I have for category hardware, sort_order=1( and therefore it came on the top in the box)

    But for let us say sub categories CDROM Drives, Graphics Cards, sort_order=0

    What do I do in order to bring 'Graphics Cards' to top in the Hardware category?
    Give it a lower sort order to bring it up higher in the list.
    This might require renumbering other categories to re-arrange sort orders.
    NOTE: Blank (null) values come before numbered values. But normally you should not have any null values in sort order, so this is normally not an issue.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. need info about two tables related to version
    By goopensource in forum Contribution-Writing Guidelines
    Replies: 0
    Last Post: 21 Sep 2009, 11:24 AM
  2. 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
  3. A few tax-related questions
    By silverbitz in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 5
    Last Post: 6 Feb 2007, 05:54 PM
  4. Questions related to functions
    By superprg in forum General Questions
    Replies: 9
    Last Post: 6 Dec 2006, 01:01 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