I have a question: I want to fetch the product url so I can set up an advertising campaign for the product. With product url I don't mean the product from the datafeed but the product url Price Tapestry creates after importing a feed. Can this data be fetched from database? I know I can get title, price etc from database but I can't seem to find the real product url only Search Name. Please let me know.
Greets,
Chris
Hello Chris,
You can derive the Price Tapestry URL from any product as follows, $productName contains the name of the product:
<?php
if ($config_useRewrite)
{
$url = "http://www.example.com".$config_baseHREF."product/".tapestry_hyphenate($productName).".html";
}
else
{
$url = "http://www.example.com".$config_baseHREF."products.php?q=".urlencode($productName);
}
?>
Hope this helps!
Cheers,
David.