Hello David,
How can i change the more information button in a shop now button? So when you click on it you go directly to the product on the merchant website.
And i'd like under the botton a little text link with more information. When you click on it you go to productpage of my own site.
Thanks Jan Roel
Hello Jan,
As search results are generated using a summary query, the link should only be changed to Visit Store if numMerchants is 1, so to do this, and include the More Information link below Visit Store, edit html/searchresults.php and look for the following code at line 63:
<a class='button tiny radius secondary' href='<?php print $product["productHREF"]; ?>'><?php print ($product["numMerchants"]>1?translate("Compare")." ".$product["numMerchants"]." ".translate("Prices"):translate("More Information")); ?></a>
...and REPLACE with:
<?php if($product["numMerchants"]==1): ?>
<a class='button tiny radius secondary' href='<?php print tapestry_buyURL($product); ?>'><?php print translate("Visit Store"); ?></a>
<br />
<a href='<?php print $product["productHREF"]; ?>'>More Information</a>
<?php else: ?>
<a class='button tiny radius secondary' href='<?php print $product["productHREF"]; ?>'><?php print translate("Compare")." ".$product["numMerchants"]." ".translate("Prices"); ?></a>
<?php endif; ?>
Cheers,
David.
--
PriceTapestry.com