Hi
When searching I have the three tabs "Shops", "Amazon" and "eBay", with the buttons "more info" at Amazon and eBay, I would like to have the function "target: _blank" only on Amazon and eBay. In the shops you should stay on the page.
Is there a solution?
Thanks and Greetings
Marco
Hello Marco,
Sure - of the Async API distribution files, edit html/searchresults_table.php and look for the following code at line 67:
<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:
<a <?php print (isset($product["api"])?"target='_blank'":""); ?> 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 edit html/prices_table.php and look for the following code at line 96:
<td class='pt_pr_visit'><a class='button tiny radius success' href='<?php print (isset($product["api"])?$product["productHREF"]:tapestry_buyURL($product)); ?>'><?php print translate("Visit Store"); ?></a></td>
...and REPLACE with:
<td class='pt_pr_visit'><a <?php print (isset($product["api"])?"target='_blank'":""); ?> class='button tiny radius success' href='<?php print (isset($product["api"])?$product["productHREF"]:tapestry_buyURL($product)); ?>'><?php print translate("Visit Store"); ?></a></td>
(on both cases it's just the insertion of;
<?php print (isset($product["api"])?"target='_blank'":""); ?>
...into the <a> tags)
Cheers,
David.
--
PriceTapestry.com