Jump to content

ModificareMeta title pagina prodotti


ale90

Recommended Posts

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

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...