View Single Post
  #7  
Old 11-22-2010, 08:30 AM
 
shorelineoftahoe shorelineoftahoe is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 30
 

Default Re: Sort by manufacturer

Wow, that was a really dumb mistake on my part. The trouble is with the quotes in step 2. They were single quotes before, and they need to be double quotes. I'm updating the post above and reposting what's changed below:

This:

# sort by manufacturer mod begins
case 'manufacturer':
$left_joins['manufacturers'] = array(
'on' => '$sql_tbl[manufacturers].manufacturerid = $sql_tbl[products].manufacturerid'
);
$sort_string = '$sql_tbl[manufacturers].manufacturer $direction';
break;
# sort by manufacturer mod ends

Should be:

# sort by manufacturer mod begins
case 'manufacturer':
$left_joins['manufacturers'] = array(
'on' => "$sql_tbl[manufacturers].manufacturerid = $sql_tbl[products].manufacturerid"
);
$sort_string = "$sql_tbl[manufacturers].manufacturer $direction";
break;
# sort by manufacturer mod ends
__________________
xcart v. 4.18-4.4
Reply With Quote