Joomla.it Forum
Componenti per Joomla! => Gestione e-commerce => : marcellov 14 Mar 2007, 11:04:00
-
Ciao a tutti, ho un problema.
In alcune categorie io ho delle sottocategorie ma non prodotti. In questi casi, nella pagina di tali categorie mi appare "This category is currently empty". In realtà esse non sono vuote, perché contengono delle sottocategorie.
Come posso far capire a Virtuemart che una categoria che contiene delle categorie ma non dei prodotti NON è vuota?
Scusate la ripetitività del testo.
Grazie mille a tutti.
-
Guarda il file
tuosito/administrator/components/com_virtuemart/html/shop.browse.php
cerca il blocchetto con il commento:
/*** when nothing has been found
* we tell this here and say goodbye */
a me serviva non mostrare quella voce quando era presente una descrizione della cetegoria e l'ho risolta così: la riga
elseif( $num_rows == 0 && empty($product_type_id) && empty( $child_list )) {
è diventata
elseif( $num_rows == 0 && empty($product_type_id) && empty( $child_list ) && empty($desc)) {
-
Wow, grazie mille!!!