arnoweb Posted March 27, 2011 Share Posted March 27, 2011 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 More sharing options...
rocky Posted March 28, 2011 Share Posted March 28, 2011 Go to the Preferences > SEO & URLs tab, then edit a page to change it's meta information. Link to comment Share on other sites More sharing options...
arnoweb Posted March 28, 2011 Author Share Posted March 28, 2011 Thanks a lot Rocky.I didn't know that my new php files will be automatically detected in the backoffice. 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