Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

attrib sorter problem

Recommended Posts

Fatal error: Call to undefined function: tep_attributes_sort() in /home/sneaker/public_html/cart/admin/products_attributes.php on line 702


this is the error message im getting after doing the install of attrib sorter, also im a newbie so im not sure how or where to run the sql to create the new db table, im guessing via mysql admin but not sure how.



Link to comment
Share on other sites



The missing function should have been with the contrib download. Go through the install instructions again and see if you missed a step.


For the SQL, the contrib won't work until you do that step. Go into your SQL Admin (phpMyAdmin or soemthing.) There should be a tab or link marked SQL. That will give you a page to load the .sql file and run it which will add the appropriate table/column to the database.



Link to comment
Share on other sites

THanks so much for the detailed info, found the sql button and ran it on myphpadmin, now this is what im getting after i added the below according to the instructions


function tep_attributes_sort($attributes_id) {

global $languages_id;


$attributes_sort = tep_db_query("select attribute_sort from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_attributes_id = '" . (int)$attributes_id . "'");

$attributes_sort_values = tep_db_fetch_array($attributes_sort);


return $attributes_sort_values['attribute_sort'];



Parse error: parse error, unexpected T_VARIABLE in /home/sneaker/public_html/cart/admin/includes/functions/general.php on line 408


and this is my line 408 of the general.php file eval("$address = "$fmt";");

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.

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