Jump to content

[SOLVED] Is it possible to change <title> and meta description for new-product.php ?


arnoweb

Recommended Posts

Hello,

Firstly, congratulations for Prestashop. I'm using it for a few days and it's very powerful.

I have a lot of questions but for the moment I am looking for a tip to change <title>, <meta description>, ... for specific pages like new-product.php, best-sales.php, ...

These pages include <title> and meta tag in include(dirname(__FILE__).'/header.php'); so i cannot change them in the file...

include(dirname(__FILE__).'/config/config.inc.php');
include(dirname(__FILE__).'/header.php');

include(dirname(__FILE__).'/product-sort.php');

$nbProducts = intval(Product::getNewProducts(intval($cookie->id_lang), isset($p) ? intval($p) - 1 : NULL, isset($n) ? intval($n) : NULL, true));
include(dirname(__FILE__).'/pagination.php');

$smarty->assign(array(
   'homeSize' => Image::getSize('home'),
   'products' => Product::getNewProducts(intval($cookie->id_lang), intval($p) - 1, intval($n), false, $orderBy, $orderWay),
   'nbProducts' => intval($nbProducts)));

$smarty->display(_PS_THEME_DIR_.'new-products.tpl');

include(dirname(__FILE__).'/footer.php');




Do you have an idea to solve this problem ?

Thanks.

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