You are here:  » Switch of comparison


Switch of comparison

Submitted by tonyver on Thu, 2008-09-18 11:37 in

Hello David,

Is it also possible to switch of the comaprison function.

Best regards,

Tony

Submitted by support on Fri, 2008-09-19 07:52

Hello Tony,

Sure - as all the navigation leads through the search script, html/searchresults.php can be modified to simply show the "Visit Store" link in place of the comparison link. To do this, look for the following code in html/searchresults.php (starting at line 24):

          <?php if ($product["numMerchants"] > 1): ?>
            <em><?php print translate("from"); ?></em>&nbsp;<strong><?php print $config_currencyHTML.$product["minPrice"]; ?></strong><br />
            <span class='nobr'><a href='<?php print $product["productHREF"]; ?>'><?php print translate("Compare Prices"); ?></a></span>
          <?php else: ?>
            <strong><?php print $config_currencyHTML.$product["price"]; ?></strong><br />
            <span class='nobr'><a href='<?php print $product["productHREF"]; ?>'><?php print translate("More Information"); ?></a></span>
          <?php endif; ?>

...and REPLACE this block with just:

          <strong><?php print $config_currencyHTML.$product["price"]; ?></strong><br />
          <span class='nobr'><a href='<?php print tapestry_buyURL($product); ?>'>Visit Store</a></span>

Cheers,
David.

Submitted by tonyver on Fri, 2008-09-19 08:54

Thanks again