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

    Default Re: Questions related to database tables

    Quote Originally Posted by DrByte
    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.
    All the sub-categories
    |_ CDROM Drives
    |_ Graphics Cards (2)
    |_ Keyboards (1)
    |_ Memory
    |_ Mice (2)
    |_ Monitors
    |_ Printers (1)
    |_ Speakers

    currently have sort order of 0
    But in the database, there is no such order
    How or why are they coming in this particular order?

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

    Default Re: Questions related to database tables

    Superprg:

    All of this is in the admin and you do not need to mess with the DB at all...

    Admin > catalog > select categories/products > you will have a list of the categories and at the right under "sort" the order...if you want to change it select the green circle with the "E" inside at at the bottom of the page displayed you can set the order. Same for the products. In your shop...the order can be set back in the admin for the view that you are looking at in the store. Alpha or the order that is set in the catalog, or price and so forth.

    For a basic shop.; 90%+ of all the settings are in the admin...no requirement to dig into the DB...

    May I suggest that instead of posting your questions about the DB that you post what it is that you want to do...and you will be assisted as to how to accomplish what it is that you want to do.

    I would have expected that one with 300+ posts would have that figured out by now...
    Zen-Venom Get Bitten

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

    Default Re: Questions related to database tables

    Thanks kobra very much for the reply


    Quote Originally Posted by kobra
    All of this is in the admin and you do not need to mess with the DB at all...
    The reason why I am doing this is to understand databases better



    Quote Originally Posted by kobra
    For a basic shop.; 90%+ of all the settings are in the admin...no requirement to dig into the DB...
    Most of the times, yes I know how to do things from Admin and thats what user is supposed to do. Any changes should be done from the Admin I agree


    Quote Originally Posted by kobra
    Superprg:

    Admin > catalog > select categories/products > you will have a list of the categories and at the right under "sort" the order...if you want to change it select the green circle with the "E" inside at at the bottom of the page displayed you can set the order. Same for the products. In your shop...the order can be set back in the admin for the view that you are looking at in the store. Alpha or the order that is set in the catalog, or price and so forth.
    Let me explain clearly
    Currently sort order value for all these sub categories is 0:

    |_ CDROM Drives
    |_ Graphics Cards (2)
    |_ Keyboards (1)
    |_ Memory
    |_ Mice (2)
    |_ Monitors
    |_ Printers (1)
    |_ Speakers

    That means whichever category they fall in they will be in top
    Now, I changed the sort order for Graphics cards to 1
    then I got this

    |_ CDROM Drives
    |_ Keyboards (1)
    |_ Memory
    |_ Mice (2)
    |_ Monitors
    |_ Printers (1)
    |_ Speakers
    |_ Graphics Cards (2)

    Fine enough...
    But what I dint understand is that for all categories except Graphics cards sort_order is 0 then who is deciding this particular order as I can see now( CD Rom, Keyboards etc) or is it just random?

    Hope the question is clear


    And sorry if my question is coming like a newbie question, but I want to be very clear
    Thanks again!

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

    Default Re: Questions related to database tables

    0 is less than 1 so Graphics Cards at 1 comes after the other categories set at 0 ...
    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!

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

    Default Re: Questions related to database tables

    Thanks Ajeh
    I got the answer here also :)
    http://www.zen-cart.com/forum/showthread.php?t=43265

    May be I have a long way to go before I understand zen cart! :)

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

    Default Re: Questions related to database tables

    one of those days ... see other thread for a way to do alpha/numeric text
    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!

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

    Default Re: Questions related to database tables

    Fine enough...
    But what I dint understand is that for all categories except Graphics cards sort_order is 0 then who is deciding this particular order as I can see now( CD Rom, Keyboards etc) or is it just random?
    Looks to be alpha to me???
    Zen-Venom Get Bitten

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

    Default Re: Questions related to database tables

    Quote Originally Posted by kobra
    Looks to be alpha to me???
    Thats right kobra
    Stupid me, took so much time to figure it out!

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

    Default Re: Questions related to database tables

    Can someone in layman terms explain to me the relevance of these tables


    zen_products_options
    zen_products_options_types
    zen_products_options_values
    zen_products_options_values_to_products_options

    Went through few records in my database but could not get much the purpose
    Thanks

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

    Default Re: Questions related to database tables

    They manage the attribtues ...

    If you do not have a shop set up with the demo data, perhaps it would be a good idea so you can see how the tables work with data in them and their relationships to one another ...
    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!

 

 
Page 2 of 3 FirstFirst 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