Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help Trimming Down Code


gaspower

Recommended Posts

Hello,

 

I added model number to my admin/categories panel and it works, but I think the coding can be a little cleaner. Can someone help me remove what I do not need.

 

Thanks JR

 

<td class="dataTableContent" align="left">

<?php

if ($action == 'move_product' || $action == 'copy_to'){

echo ' <input type="checkbox" name="products_id[]" value="'.$products['products_id'].'"';

if ($pID == $products['products_id']){

echo " checked";

}

echo '> ' . $products['products_model'];

} else {

echo '' . $products['products_model'];

}

?> </td>

Link to comment
Share on other sites

hiya, I don't have the slightest clue what you'd like to do. ... unless ... you just want to show products model for all items in the admin listing. Can you please explain?

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

just to display the module, this is enough:

 

you only need

 

<td class="dataTableContent" align="left"><?php echo '> ' . $products['products_model']; ?></td>

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...