Ad

Add Page Number To Meta Title In Category Page On Prestashop

- 1 answer

i have category pages with a lot of products. for example :

https://www.cdsoft.co.il/index.php?id_category=218&controller=category&id_lang=3&p=3https://www.cdsoft.co.il/index.php?id_category=218&controller=category&id_lang=3&p=4https://www.cdsoft.co.il/index.php?id_category=218&controller=category&id_lang=3&p=4

they all have the same meta title .

i want to add to each meta title the string " - page number XX"

HOW TO DO IT ?

Ad

Answer

I've found it :)

i'm using blocklayered module , and there is a function call Ajax call. when i'm using blocklayered- the meta title comes from the ajax function :)

so - with the help of Yaniv Mirel - in line 3174 , on module/blocklayered/blocklayered.php - line 3174 :

'meta_title' => $meta_title . ' | ' . $this->l('page') . ' ' . $p . ' - ' . Configuration::get('PS_SHOP_NAME'),

Ad
source: stackoverflow.com
Ad