alicewoman1 Posted April 2, 2012 Share Posted April 2, 2012 Hoe kan je de attributen netjes sorteren? Ik heb bijvoorbeeld de volgende maten aangemaakt XXS XS Small Medium Large XL Hij gooit de maten door elkaar in de shop. Hoe kan ik dit zelf bepalen? Nu krijg ik het in deze volgorde te zien: Large Medium Small XL XS XXS Ik heb al op het forum gezocht maar geen van de codes werkt bij mij op 1.4.7 Link to comment Share on other sites More sharing options...
Frens Posted April 2, 2012 Share Posted April 2, 2012 Hoi, kijk eens hier http://www.prestashop.com/forums/topic/149464-hoe-zet-ik-de-volgorde-van-bv-een-attribute-groep-als-size/page__p__789739__hl__volgorde__fromsearch__1?do=findComment&comment=789739 Link to comment Share on other sites More sharing options...
alicewoman1 Posted April 2, 2012 Author Share Posted April 2, 2012 Beste Frens, Die link had ik gisteren gevonden maar er veranderd niets bij mij. Net nog even opnieuw geprobeerd in /classes/Product.php search for: public function getAttributesGroups below that code find the line: ORDER BY agl.`public_name`, al.`name`'); in my case it was on line 1217 and change it to: ORDER BY ag.`id_attribute_group`, pa.`id_product_attribute`'); then in /controllers/ProductController.php search for: foreach ($groups AS &$group) natcasesort($group['attributes']); in my case it was on line 327-328 and comment these 2 lines ( // foreach ($groups AS &$group) // natcasesort($group['attributes']); ) de maten blijven helaas in dezelfde volgorde staan. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now