Jump to content

meta description for Facebook


Timpet
 Share

Recommended Posts

I do have the share button, thats not what im look for. But thanks for sharing anyway.

I basicly wounder if it is posible to add item price to the meta description. (the stuff diplayed at the browser window).

It is for use with the share button..

Share this post


Link to post
Share on other sites

yes no problem

stage one

download a copy of your header.tpl from your theme directory and rename it header_product.tpl

edit header_product.tpl

find

<title>{$meta_title|escape:'htmlall':'UTF-8'} </title>



and change to

<title>{$meta_title|escape:'htmlall':'UTF-8'} - {convertPrice price=$product->getPrice(true, $smarty.const.NULL, 2)}</title>



upload back to your theme folder

you could use the same principal to change the the meta descripition

goto to your server root and open header.php

find

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



delete this line

and replace with

$header_tpl = 'header.tpl';

if(file_exists(_PS_THEME_DIR_ . 'header_' . $page_name . '.tpl'))
{
   $header_tpl = 'header_' . $page_name . '.tpl';
}

$smarty->display(_PS_THEME_DIR_. $header_tpl); 



basically it calls header_product.tpl when product.php is loaded rather than header.tpl

have checked it show the correct price when the item has a special price applied (price drop)

but have not checked on multicurrency as all our sites are set up for UK sterling

pm if you have any problems

regards


Chris

Share this post


Link to post
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More