Joomla.it Forum
Componenti per Joomla! => Gestione e-commerce => : trollallacarica 21 Mar 2007, 17:52:36
-
Anzitutto un saluto ai mod con una premessa: 1)ho già usato il cerca 2)ho già consultato il forum :-X
problema: voglio inserire keyword e meta tags diversi per ogni prodotto che ho creato
ho già visto questo:http://forum.joomla.it/index.php?topic=15304.0 (http://forum.joomla.it/index.php?topic=15304.0) ma non è quello che fa propriamente per me
questo è interessante invece ma non riesco a trovare i file ai quali fa riferimento lo sviluppatore alla risposta #6:
http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=26728.0 (http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=26728.0)
grazie a chi mi risponderà
marco
-
urca! non interessa l'argomento? eppure sarebbe un grosso passo avanti avere per ogni pagina con relativo articolo le keyword e matatag più idonei, no?
forse sbaglio io e non è così importante?
-
Riporto il post che mi permetterebbe di fare la modifica che mi interessa ma che non riesco ad applicare:
"shop.browse.php and shop.product_details.php are the files that show the product pages. Both of these have prependMetaTag statements, which add these to the main joomla pages.
such as this
/* Prepend Product Short Description Meta Tag "description" */
$mainframe->prependMetaTag( "description", strip_tags( $db_product->f("product_s_desc")) );
To make your own changes you would have to alter the queries in shop_browse_queries.php to add the fields you have created and then in the two above files extract the information and add them to the page.
Personally I have changed the pages to this
$mainframe->prependMetaTag( "description", strip_tags( $db_product->f("product_s_desc")) );
$mainframe->appendMetaTag( 'keywords', $db_product->f("product_name"));
$db->query( "SELECT category_name FROM #__{vm}_category WHERE category_id = '$category_id'" );
$db->next_record();
$mainframe->appendMetaTag( 'keywords', $db->f("category_name"));
this adds the description and keywords based on the category title and the product name."
I suddetti files si trovano in:
your-site/administrator/components/com_virtuemart/html
i dubbi sono:
1)devo modificare shop.browse.php e shop.product_details.php inserendo anche :
$mainframe->prependMetaTag( "description", strip_tags( $db_product->f("product_s_desc")) );
$mainframe->appendMetaTag( 'keywords', $db_product->f("product_name"));
$db->query( "SELECT category_name FROM #__{vm}_category WHERE category_id = '$category_id'" );
$db->next_record();
$mainframe->appendMetaTag( 'keywords', $db->f("category_name"));
2)Qualche cambiamento va fatto su shop_browse_queries.php?
3)SELECT category_name FROM e WHERE category_id sono comandi o vanno sostituiti con il nome delle mie categorie? se sì esattamente quale parte va sostituita
grazie
marco
-
Anche a me servirebbe saperlo, potete aiutarci perfavore
grazie anticipatamernte
-
Ragazzi ma queste cose non dovreste toccarle se non sapete cosa dovete fare. State andando a modificare i file che fanno funzionare Vm. Quelle sono query ad al db e se non sapete come funziona SQL è meglio che ci state lontani e vi tenete virtue mart così com'è.