Results 1 to 3 of 3

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

      
  1. #1
    New Member
    Join Date
    Jun 2004
    Posts
    15
    Rep Power
    0


    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;

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    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 - To contact, post on the forum or click here
    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!

  3. #3
    New Member
    Join Date
    Jun 2004
    Posts
    15
    Rep Power
    0


    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.

Similar Threads

  1. Image size hack for product pages
    By brendanl79 in forum osCmax v2 Customization/Mods
    Replies: 10
    Last Post: 06-15-2007, 02:37 PM
  2. Product Quantity on Product Listing Page
    By vinces in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 12-10-2004, 06:32 PM
  3. Modyfying product listing and new products listing
    By pavlo in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 11-22-2004, 08:27 AM
  4. Product detail in product listing
    By isummitweb in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 06-05-2004, 07:50 PM
  5. Simple versus Advanced Product info
    By afguns in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 02-03-2004, 12:20 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
  •