Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error on line with Custom sort order field Mod


Tilapia Film

Recommended Posts

I just installed the contribution "Custom sort order field for products in admin/categories.php"

 

But I am having some problems when the admin tries to execute the sort.

 

I get this error:

 

 

Fatal error: Call to undefined function: tep_set_product_sort_order() in /home/content/s/a/l/saltonseadoc/html/saltonseadoccom/shop/catalog/admin/categories.php on line 36

 

 

Here is the code in the area from 19 to 46:

 

 if (tep_not_null($action)) {
   switch ($action) {
//sort order

     case 'beginsort':

       $sorting = true;

       break;

       tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $HTTP_POST_VARS['cPath']));

     case 'setsortorder':

       for ($i=0, $n=sizeof($HTTP_POST_VARS['products_id']); $i<$n; $i++) {

           tep_set_product_sort_order($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['sortorder'][$i]);

         }

       $sorting = false;

       tep_redirect(tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $HTTP_POST_VARS['cPath']));

       break;

//end sort order

 

and here is the specific line 36 that it speaks of:

            tep_set_product_sort_order($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['sortorder'][$i]);

 

Any help would be greatly appreciated!!!!

 

Thanks so much.

 

Jeff

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...