Jump to content

[RISOLTO]Ordinamento attributi in 1.3 non funziona


Recommended Posts

Ciao

Ho installato il presta shop 1.3 in un nuovo sito e anche in questa versione si ripresenta il bug dell' ordinamento degli attributi , ovvero se inserisco le taglie S M L XL l ' utente nel negozio le vede tutte mischiate , tipo L M XL S

Ho scaricato configurato e installato attribute position che sull' 1.25 funziona egregiamente ma sulla nuova versione nisba

Volevo sapere se conoscete qualche altro modulo o metodo

Grazie

Link to comment
Share on other sites

Ok risolto

classes/Product.php function: getAttributesGroups()

ORDER BY al.`name`); 



va cambiato cosi

ORDER BY pa.`id_product_attribute`); 





/product.php (quello nella root)


foreach($groups AS &$group)
natcasesort($group['attributes']); 



Va decommentato

// foreach($groups AS &$group)
// natcasesort($group['attributes']); 


allego i due files completi quello di maggiori dimensioni va in classes e rinominato in product.php ovviamente

Mi raccomando fare perlomeno il backup dei 2 files orginali prima di caricarli

Product (class).php

product.php

Link to comment
Share on other sites

  • 11 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...