Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Edit order not showing all categories!


doctorTheo

Recommended Posts

Hi

 

I installed the module edit_orders.php, works fine but doesn't display all categories in the option "add a new product".

 

It displays only one category, how can i change it to display ALL cat?

 

Thanks

 

** // Set Defaults

if(!IsSet($add_product_categories_id))

$add_product_categories_id = 0;

 

if(!IsSet($add_product_products_id))

$add_product_products_id = 0;

 

// Step 1: Choose Category

print "<tr class=\"dataTableRow\"><form action='$PHP_SELF?oID=$oID&action=$action' method='POST'>\n";

print "<td class='dataTableContent' align='right'><b>STEP 1:</b></td><td class='dataTableContent' valign='top'><select name='add_product_categories_id'>";

$CategoryOptions = "<option value='0'> --- CHOOSE A CATEGORY---\n";

foreach($CategoryList as $CategoryID => $CategoryName)

{

$CategoryOptions .= "<option value='$CategoryID'> $CategoryName\n";

}

 

$CategoryOptions = str_replace("value='$add_product_categories_id'","value='$add_product_categories_id' selected", $CategoryOptions);

print $CategoryOptions;

print "</select></td>\n";

print "<td class='dataTableContent' align='center'><input type='submit' value='Select This Category'>";

 

 

***Thanks

 

DcTheo

MS2

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...