You are here:  » More information button search page

Active Forum Topics

More information button search page

Submitted by wesse249 on Mon, 2017-11-27 12:18 in

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

Submitted by support on Mon, 2017-11-27 14:30

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; ?>