osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Need help with a simple product listing hack...

This is a discussion on Need help with a simple product listing hack... within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I need to replace the 'Weight' column in the product listing with the model number. Should be easy as switching ...


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 06-03-2004, 04:11 PM
New Member
 
Join Date: Jun 2004
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Nocturnaloner
Default Need help with a simple product listing hack...

I need to replace the 'Weight' column in the product listing with the model number. Should be easy as switching a variable, but for some reason it won't work. I've already changed the table header label to "Order #", but the model numbers won't display when I substitute 'products_model' for 'products_weight' in the product_listing.php file. Can anyone tell me what I'm doing wrong?

case 'PRODUCT_LIST_WEIGHT':
$lc_align = 'right';
$lc_text = ' ' . $listing['products_model'] . ' ';
break;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 06-04-2004, 07:22 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default

There is problems with doing this. Mostly due to SHIPPING uses this feild. Your better off ADDING any required feild. Take a look at the ISBN/Barcode contribution that shows you HOW and WHERE to add any required fields. Works for many people to add "other" information.

However that said - there already is a "Products Model" feild for this reason. Did you need another feild as a "Model Number"?
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 06-04-2004, 10:14 AM
New Member
 
Join Date: Jun 2004
Posts: 15
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Nocturnaloner
Default

Hi, thanks for your reply! You're right, the weight is tied into too many other things, even though it probably never will be used. Also true that I made a dumb mistake in trying to do this instead of simply looking harder at the admin configuration list. RTFM. On the other hand, I did figure out why you can't substitute some of these variables. It's because within the database, the different fields have different types, such as decimal or aplhanumeric, as well as a default value, but you can only see and change this in phpmyadmin. Live and learn.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
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
Image size hack for product pages brendanl79 osCMax v2 Customization/Mods 10 06-15-2007 02:37 PM
Product Quantity on Product Listing Page vinces osCMax v1.7 Discussion 2 12-10-2004 06:32 PM
Modyfying product listing and new products listing pavlo osCommerce 2.2 Modification Help 0 11-22-2004 08:27 AM
Product detail in product listing isummitweb osCommerce 2.2 Modification Help 1 06-05-2004 07:50 PM
Simple versus Advanced Product info afguns osCMax v1.7 Discussion 2 02-03-2004 12:20 PM


All times are GMT -8. The time now is 11:03 AM.


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