Results 1 to 5 of 5

Categories/Products customization in the Admin Section

This is a discussion on Categories/Products customization in the Admin Section within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi! In the Admin Section of osCommerce, when you view the products within each category...I'd like to customize it a ...

      
  1. #1
    Member
    Join Date
    Apr 2004
    Posts
    35
    Rep Power
    0


    Default Categories/Products customization in the Admin Section

    Hi!
    In the Admin Section of osCommerce, when you view the products within each category...I'd like to customize it a bit, to add Model Number to the listing.

    I'd like to list

    products_model, product_name.

    and also sort by products_model, product_name

    I know I have to modify some code in the admin/catgegories.php module.

    Any clue on how to do this?

    THANKS!!

  2. #2
    Active Member
    Join Date
    Jun 2004
    Location
    Glued to Computer Chair
    Posts
    108
    Rep Power
    0


    Default

    I would think you would need to add in the product_model into the query, sort the query by product_model and add product_model into the array. Then call for the array to list the product_model, product_name. All of this would be done in the admin/categories.php
    True Meaning of Lost: Building a web site without knowledge or skill

    True Meaning of Crazy: Building a web site anyhow

    The Net Results: Never needing a comb again

    www.MakeMeThis.com

  3. #3
    Member
    Join Date
    Apr 2004
    Posts
    35
    Rep Power
    0


    Default

    Yes, Make...that is exactly what I want to do! Only, I'm not real good at PHP, and I'm not quite sure where to put this code. I am going to print out the categories.php module and take a look. I can kind of see what it's doing.

    Hey...do you know if there is a way to walk through this code, line by line...maybe set some breakpoints, and examine the values of different variables. What type of software do you suggest for debugging PHP. Right now, I'm just looking at it w/ Dreamweaver, but I know you can do more!!

    THANKS!

  4. #4
    Active Member
    Join Date
    Jun 2004
    Location
    Glued to Computer Chair
    Posts
    108
    Rep Power
    0


    Default

    I don't use a program...I have learned that if I read the page...compare it and look for the standard things that I know...then I can usually figure out what and where. I run 3 copies of the files on my computer. The original one, the one that is current on the site and when I play with a page...I save it aside...this way when I upload something and it doesn't work...I just re-upload the prior one that did and try again. My way is slow but it teaches me the code and once I learn a trick then I know I can use it again. Where I would start is by looking for the query that pulls from the table which the files are stored in. The command for the sort would be order by 'products_model' and would be at the end of the query line. It might say order by 'products_name' already and you would just have to change that. Usually after the query, you will see the lines calling for the data from the array (which is right after the query). That is where you would modify to display what you want. If you visit my site you will see that I used the attribute text mod and attribute sort mod. When I put those mods in, it kinda taught me how to sort/order things. I did it in a few places to meet my needs. Be patient and good luck!
    True Meaning of Lost: Building a web site without knowledge or skill

    True Meaning of Crazy: Building a web site anyhow

    The Net Results: Never needing a comb again

    www.MakeMeThis.com

  5. #5
    Member
    Join Date
    Apr 2004
    Posts
    35
    Rep Power
    0


    Default

    Ok, cool! I will do that. YES, certainly the "order by product_name" is the code I want to look at. I will try that. It also helps me to print these modules out. I know sometimes it's a lot of code to look at on paper, but it is hard for me to get a good perspective of things when I'm only looking at a little code at a time. Thanks for your help, Make. When I figure this out, may I can add it as a contribution!!

Similar Threads

  1. Admin/categories.php lists all 5000 products on same page...
    By JonCloud420 in forum osCMax v2 Features Discussion
    Replies: 3
    Last Post: 02-06-2007, 10:31 AM
  2. New Products Section Update Fix
    By Impreza25r in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 01-30-2006, 07:59 PM
  3. Admin section: different languages
    By mystere in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 10-22-2005, 09:57 AM
  4. Need categories to show in center section
    By cupido in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 11-06-2004, 01:57 PM
  5. using just the admin section
    By shaytaan in forum osCMax v1.7 Installation
    Replies: 0
    Last Post: 09-02-2004, 02:00 PM

Bookmarks

Posting Permissions

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