ale90 Posted January 23, 2012 Share Posted January 23, 2012 Ciao ragazzi, volevo modificare il meta title della pagina prodotti, allora sono andato nel file classes/tools.php, verso la riga 622 /* Products specifics meta tags */ ho modificato così if ($id_product = self::getValue('id_product')) { $row = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow(' SELECT `name`, `meta_title`, `meta_description`, `meta_keywords`, `description_short`, `id_manufacturer` FROM `'._DB_PREFIX_.'product` p LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (pl.`id_product` = p.`id_product`) LEFT JOIN `'._DB_PREFIX_.'manufacturer` pm ON (pm.`id_manufacturer` = p.`id_manufacturer`) WHERE pl.id_lang = '.(int)($id_lang).' AND pl.id_product = '.(int)($id_product).' AND p.active = 1'); if ($row) { // meta title pagina $row['meta_title'] = $row['name'] - $row['pm.name'] .' Vendita Online - '.Configuration::get('PS_SHOP_NAME'); Vorrei far comparire il nome del prodotto - Marca Vendita Online - Nome ecommerce Unica cosa non funziona Dove sbaglio? Ciao e grazie Link to comment Share on other sites More sharing options...
shoppingpiceno Posted January 24, 2012 Share Posted January 24, 2012 Ciao, prova a cancellare la cache smarty /tools/smarty/compile (cancella tutti i files tranne index.php) Link to comment Share on other sites More sharing options...
ale90 Posted January 24, 2012 Author Share Posted January 24, 2012 Ho già provato, il titolo se metto solo $row['id.manufacture'] funziona (viene scritto il numero) ma se al posto di quello metto il name non funziona Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now