ValentinSV Posted March 14, 2019 Share Posted March 14, 2019 (edited) Hello, Je n'arrive pas à modifier l'ordre des valeurs d'attributs qui s'affichent sur l'admin d'une fiche produit, dans la partie déclinaison. J'ai modifié les ORDER BY dans les classes Attribute & AttributeGroup, ça marche en FO mais en BO ça reste toujours en ordre via la position 😕 J'ai 400 valeurs qui évoluent au fil du temps je ne peux pas m'amuser à trier manuellement a chaque ajout. Merci par avance Edited March 18, 2019 by ValentinSV (see edit history) Link to comment Share on other sites More sharing options...
ValentinSV Posted March 15, 2019 Author Share Posted March 15, 2019 1 minute ago, okom3pom said: Regarde par là :https://github.com/PrestaShop/PrestaShop/blob/1.6.1.x/controllers/admin/AdminProductsController.php#L4317https://github.com/PrestaShop/PrestaShop/blob/1.6.1.x/admin-dev/themes/default/template/controllers/products/combinations.tpl#L36 Je regarde ça rapidement, merci ! Link to comment Share on other sites More sharing options...
ValentinSV Posted March 18, 2019 Author Share Posted March 18, 2019 Etant sur 1.7, les fichiers ne sont plus de ce monde =). Cependant j'ai trouvé ou ça se passe : /src/PrestaShopBundle/Entity/Repository/AttributeRepository.php line 58 : ->orderBy('attributePosition') ->addOrderBy('attributeGroupPosition') J'ai modifié par : ->orderBy('attributeGroupPosition') ->addOrderBy('attributeName') Par contre c'est pas propre... et j'ai pas trouvé comment (et si c'est possible) d'override ces fichiers. Donc à la moindre maj ça dégage. Link to comment Share on other sites More sharing options...
ValentinSV Posted March 18, 2019 Author Share Posted March 18, 2019 Oui en effet, j'avais pas mis toutes les infos désolé. Par contre j'ai rien trouvé sur comment override les fichiers src et surtout j'ai trouvé que des infos/posts qui disent que c'est pas propre/possible car non pris en charge 😕 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