AtomCom Posted August 11, 2009 Share Posted August 11, 2009 Hi,I was wondering if any of you clevery people knew how to order group attributes? At the moment it is only in alphabetical order ?ie SMLXL Link to comment Share on other sites More sharing options...
Patric Posted August 11, 2009 Share Posted August 11, 2009 There is actually no way to sort attributes with PrestaShop.You should have a look at this topic :http://www.prestashop.com/forums/viewthread/11717This was posted monthes ago, so may be outdated... Link to comment Share on other sites More sharing options...
AtomCom Posted August 11, 2009 Author Share Posted August 11, 2009 Thank you very much for you quick reply The topic you pointed me to was very useful Can I put forward the suggestion of adding a way of sorting the attributes in the new version? I would suggest sorting on the id_attrbute field in ps_attribute. Then allowing the ps_attribute field to be changed by moving the order of attribute items ...Many thanks againAndy Link to comment Share on other sites More sharing options...
radders Posted August 11, 2009 Share Posted August 11, 2009 If they can be sorted alphabetically then we could do a workaround for special cases like numercial sorting and sizing as follows:I haven't tried this on PS but I have used this method on other carts:" S" ie. space space S" M" ie. space M"L""XL"The multiple spaces don't show up in the rendered page but may be applied to the alphabetical sorting.It would seem simple to change the sorting in getAttributesGroups function in “/classes/Product.php” to attribute_name instead of pa.`id_product_attribute` Link to comment Share on other sites More sharing options...
AtomCom Posted August 11, 2009 Author Share Posted August 11, 2009 A slight change to my post ... lolThe order of the attributes does not seem to be alphabetical by description, but by as entered... !!So to change the attribute order all you need to do is adjust the ps_attribute field (remembering this is a primary, index field!) (Though I am going to have a play just to see if it works now) .. heheAndy Link to comment Share on other sites More sharing options...
rocco42 Posted September 13, 2009 Share Posted September 13, 2009 I'd really need this feature too.Once the attribute combinations are generated, there should be an option to set their order. Link to comment Share on other sites More sharing options...
tomerg3 Posted January 4, 2010 Share Posted January 4, 2010 I have just released an Attribute Order module that lets you control the order of attribute groups and items.http://www.prestashop.com/forums/viewthread/39687/ Link to comment Share on other sites More sharing options...
Recommended Posts