Hello David,
I would like the links to merchant sites to open in a new window.
How would this be achieved?
best regards
David S S
Hello David,
You are a "Living Legend"!!
It works, and so easy to fix.
Thank you for all your help.
best regards
David S S
Edit: Updated for 18/06A
Hi David,
The easiest way to plumb this in without having to modify every location within the HTML files where Buy URLs are displayed is to patch it into the tapestry_buyURL function within includes/tapestry.php.
To do this, in that file look for the following function beginning at line 90:
function tapestry_buyURL($product)
{
global $config_baseHREF;
global $config_useTracking;
if ($config_useTracking)
{
return $config_baseHREF."jump.php?id=".$product["id"];
}
else
{
return $product["buy_url"];
}
}
...and REPLACE with:
function tapestry_buyURL($product)
{
global $config_baseHREF;
global $config_useTracking;
if ($config_useTracking)
{
$retval = $config_baseHREF."jump.php?id=".$product["id"];
}
else
{
$retval = $product["buy_url"];
}
$retval = $retval."' target='_blank";
return $retval;
}
Cheers,
David.