Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Alternate attribute handling + attribute sorting


Aragon127

Recommended Posts

Most likely there error is in this section of categories.php :

<?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"') . '  ';



     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 '  <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $HTTP_GET_VARS['pID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';

?>

 

This code is very old. If you are using mine or David's Attribute features neither are updated in that section to the current categories.php code.

 

The rest of the file should be as current as the version at the top.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...