How To Add Words Like "buy" Into Title

Hello everyone

Please, help, I need to do dynamic generation for my product-titles to be like "*product name* + buy in *** shop"

I use this code to dynamically generate titles.
Please help, how to add words "buy in *** shop" in code?

Thanks in advance!

use Tygh\Registry;
if (!defined('BOOTSTRAP')) { die('Access denied'); }
if ($mode == 'view' && !empty($_REQUEST['product_id'])) {
$product = Registry::get('view')->getTemplateVars('product');
if(empty($product['page_title'])){
//other data can be added to title dynamic also
$page_title = $product['product'];
Registry::get('view')->assign('page_title', $page_title);
}
}
?>

Please use

use Tygh\Registry;

if (!defined(‘BOOTSTRAP’)) { die(‘Access denied’); }

if ($mode == ‘view’ && !empty($_REQUEST[‘product_id’])) {
$product = Registry::get(‘view’)->getTemplateVars(‘product’);
if(empty($product[‘page_title’])){
//other data can be added to title dynamic also
$page_title = $product[‘product’] . __(‘product_title_suffix’);
Registry::get(‘view’)->assign(‘page_title’, $page_title);
}
}
?>

then go to translations and add product_title_suffix language variable with the required value