osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 07-27-2004, 01:02 PM
Member
 
Join Date: Apr 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ReginaStelling
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!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 07-27-2004, 04:59 PM
Active Member
 
Join Date: Jun 2004
Location: Glued to Computer Chair
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
makemethis
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 07-27-2004, 08:27 PM
Member
 
Join Date: Apr 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ReginaStelling
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 07-27-2004, 09:01 PM
Active Member
 
Join Date: Jun 2004
Location: Glued to Computer Chair
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
makemethis
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 07-29-2004, 03:31 AM
Member
 
Join Date: Apr 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ReginaStelling
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!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 01:41 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax