Pricemod

Aplrapid <[email protected]>
Newsgroups gmane.comp.web.oscommerce.features
Message-ID <4d25f7a21a68fb18a915ca3f0ac75318@osCommerce-Forums>
This message was sent from: Features
http://forums.oscommerce.com/viewtopic.php?p=182287#182287
----------------------------------------------------------------

Hi sidram,

after a short look on your categories.php I found a misconfiguration for the last instruction of pricemod in this file
Search for "if (is_array($value)" - unique string

This is the start for the last change, pricemod script tells to delete following "}language = tep_get_languages.." block, but in your file there following two blocks, it would be a little tricky to solve it without missing { / } because to fulfill if statement.

here a sample of this block from my categories.php:
/* Re-Post all POST'ed variables */
      reset($HTTP_POST_VARS);
      while (list($key, $value) = each($HTTP_POST_VARS)) {
        if (is_array($value)) {
  while (list($k, $v) = each($value)) {
  echo tep_draw_hidden_field($key . '[' . $k . ']', htmlspecialchars(stripslashes($v)));
  }
} else {
echo tep_draw_hidden_field($key,htmlspecialchars(stripslashes($value)));
	}
}
      echo tep_draw_hidden_field('products_image', stripslashes($products_image_name));

      echo tep_image_submit('button_back.gif', IMAGE_BACK, 'name="edit"') . '&nbsp;&nbsp;';
      }

      if ($HTTP_GET_VARS['pID']) {
        echo tep_image_submit('button_update.gif', IMAGE_UPDATE);
      } else {
        echo tep_image_submit('button_insert.gif', IMAGE_INSERT);
      }
      echo '&nbsp;&nbsp;<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $HTTP_GET_VARS['pID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
?></td>
      </form></tr>
<?php

but I'm running version 1.137 of this file

hope it helps :)

Aplrapid
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.