Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Model number in admin


zefeena

Recommended Posts

Hi,

 

this is something I've been trying to do for 10 years!  i'm sure I've probably asked before, but to date I still haven't figured out whats wrong.

 

I added a bit of code someone wrote so it gave a column in admin showing the quantity:

 

 

essentially the important bit was

 

add in admin/categories.php:

 

<td class=''dataTableContent'' align=''centre''><?php echo $products[products_quantity'];?></td>

 

it worked brilliant,

 

so I repeated the set of code and changed the [products_quantity] bit to [products_model].

 

But it never worked.  The column header showed up, but no data.  I checked my database it seems its definitely called 'model' .

 

It would be brilliant to get this working as my 'model' is also my location so I would be able to see where something is without having to click on it, which when  you are stock checking a few thousand items is very laborious!

 

Any help would be appreciated.

 

thank you  Kellie

 

 

 

Running a botched up version of  osCommerce Online Merchant v2.3.4 bootstrap with the dresscode theme installed, numerous add-ons, terrible coding, terrible website, but will have to make do until I have made up for my losses and can risk shutting down for a couple of weeks while I start all over again. - I did not install my program but am endeavouring to fix it with your help.

Link to comment
Share on other sites

@@zefeena You stated for 10 years you've been trying so I am only assuming you have an older system.  The below should work. One is an add on the other 2 are forum links. I hope they help, take care.

 

http://addons.oscommerce.com/info/6359

http://www.oscommerce.com/forums/topic/273275-show-product-name-and-product-model/

http://www.oscommerce.com/forums/topic/107262-add-model-to-admin-product-listing/

 

Bill

Link to comment
Share on other sites

As Dan said there are 2 queries around line 937-939. Just add p.products_model to the second query.

 

That worked!  so easy when you know how!

 

I do have a current up to date site, but over the years everytime I have updated or started afresh i've wanted this to happen, had a go and failed.  So success at last!  thank you so much. 

Running a botched up version of  osCommerce Online Merchant v2.3.4 bootstrap with the dresscode theme installed, numerous add-ons, terrible coding, terrible website, but will have to make do until I have made up for my losses and can risk shutting down for a couple of weeks while I start all over again. - I did not install my program but am endeavouring to fix it with your help.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...