Tilapia Film Posted October 13, 2008 Posted October 13, 2008 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 Quote
Tilapia Film Posted October 14, 2008 Author Posted October 14, 2008 From what I can find, this seems like it could be a problem of it writing to the database. Does this seem like the issue? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.