Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

admin/categories.php file got all messed up


sinryder

Recommended Posts

hey guys can any one please take a look at my categories.php file, some how it got all messed up :(

When i try to add new product i dont see products name colum, also the description colum is showing twice and the preview button is missing so i cannot save the new product.

i have uploaded categories.php file and picture of newproduct page you can download it here.

 

by looking at the picture you will know what i am talking about.

 

any help is greatly apprecaited

 

thankyou

Link to comment
Share on other sites

hey guys can any one please take a look at my categories.php file, some how it got all messed up :(

When i try to add new product i dont see products name colum, also the description colum is showing twice and the preview button is missing so i cannot save the new product.

i have uploaded categories.php file and picture of newproduct page you can download it here.

 

by looking at the picture you will know what i am talking about.

 

any help is greatly apprecaited

 

thankyou

 

Did you try to replace all the file in the admin folder. You can download it from the oscomence website.

Link to comment
Share on other sites

in your categories.php you will see the second description instance here:

 

//--></script>
<?php
for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
?>
	  <tr>
		<td class="main" valign="top"><?php if ($i == 0) echo TEXT_PRODUCTS_DESCRIPTION; ?></td>
		<td><table border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="main" valign="top"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']); ?> </td>
			<td class="main"><?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_description[$languages[$i]['id']]) ? $products_description[$languages[$i]['id']] : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td>
		  </tr>
		</table></td>
	  </tr>
<?php
}
?>

 

from that code remove this part:

<?php
for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
?>
	  <tr>
		<td class="main" valign="top"><?php if ($i == 0) echo TEXT_PRODUCTS_DESCRIPTION; ?></td>
		<td><table border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td class="main" valign="top"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']); ?> </td>
			<td class="main"><?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_description[$languages[$i]['id']]) ? $products_description[$languages[$i]['id']] : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td>
		  </tr>
		</table></td>
	  </tr>
<?php
}
?>

 

The other problem however I do not know like this because I cannot see if the html is broken. I would expect to see the footer and I don't but could be the image you attached. The preview button seems to be where it should by looking at the code.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...