Un piccolo Hack per permettere di modificare l'ordine predefinito di visualizzazione dei prodotti di Virtuemart 1.x. Di fatto è una opzione tralasciata, ma che è fondamentale.
Apriamo il file administrator/components/ com_virtuemart/html/shop_browse_queries.php e cambiamo la linea
// Descending or Ascending Order? possible values: [ASC|DESC]in:
$DescOrderBy = strtoupper($vm_mainframe->getUserStateFromRequest( "browse{$keyword}{$category_id}{$manufacturer_id}DescOrderBy", 'DescOrderBy', "ASC" ));
$DescOrderBy == 'ASC' ? 'ASC' : 'DESC';
// Descending or Ascending Order? possible values: [ASC|DESC]
$DescOrderBy = strtoupper($vm_mainframe->getUserStateFromRequest( "browse{$keyword}{$category_id}{$manufacturer_id}DescOrderBy", 'DescOrderBy', "DESC" ));
$DescOrderBy == 'ASC' ? 'ASC' : 'DESC';
Nessun commento :
Posta un commento