Jump to content

Attribute Group Position in Front Office


Recommended Posts

Hi

 

In the back office when I change the disply order of the attribute group(not attribute) the order of the attribute group changes in the back office as well as in the database base (0,1,2,3,4,5 and so on) which is good, however they still show in the default order (which I assume is the date of when the attribute was made or the ID number) in the store.

 

 

I have looked at the blocklayered.php and line 2052 seems to be where it's at with this 

GROUP BY `type`, id_value ORDER BY position ASC'

 

but for some reason it isnt picking up the postion of the group but using the group ID instead.

/* Get the filters for the current category */
		$filters = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('
			SELECT * FROM '._DB_PREFIX_.'layered_category
			WHERE id_category = '.(int)$id_parent.'
				AND id_shop = '.$id_shop.'
			GROUP BY `type`, id_value ORDER BY position ASC'
		);

Anyone have an idea on what to try

 

 

Chris

Edited by Chris2013 (see edit history)
Link to comment
Share on other sites

Still trying to work how to correct this bug to get them to show in their position and not in their ID value

 

I Don't normally throw in the towel on glitches but getting close to doing so, the only other soluition I can think of is go into myphpadmin and edit the attribute ID's to the order I require them, bit of a task though.

 

 

 

If anyone else has a solution it'll be welcome

 

I have attached a picture that may help show what i'm on about.

 

post-721127-0-51374000-1409510754_thumb.jpg

Edited by Chris2013 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...