Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Show Model Number On New Products Page


SuperComputing

Recommended Posts

Posted

I've searched the contribs and forums, with no luck. I am looking for a way to show the model number of my products under the product name on products_new.php. Any help or a link to help would be greatly appreciated.

Posted

Ok, no help, so I've done it myself... here's the code:

 

Edit products_new.php

 

I'm giving what I believe are original line numbers because I am using a template.

 

Around line 56, under $products_new_query_raw = "select .products_id, ........

 

Add p.products_model, to the existing code, I added mine after the _name

 

At around line 89, after $products_new['products_name'] . '</u></b></a><br>' .

 

Add . TEXT_PRODUCTS_MODEL . ' <b>' . $products_new['products_model'] . '</b><br>'

 

This is how it is supposed to work, however, TEXT_PRODUCTS_MODEL doesn't work, it is defined in my categories.php file just like TEXT_DATE_ADDED, which does work, so I just replaced it with 'Model:'

 

categories.php

define('TEXT_DATE_ADDED', 'Date Added:');

define('TEXT_PRODUCTS_MODEL', 'Products Model:');

 

If anyone knows why this is, please let me know.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...