Hi David, How can I attach the jump.php code to the product page image (the single product page)?
Hi,
Edit html/product.php and look for the IMG element rendering of the main product image, which is in the Foundation template within line 32:
<div class='small-8 medium-4 columns'><img alt='<?php print translate("Image of"); ?> <?php print htmlspecialchars($product_main["name"],ENT_QUOTES,$config_charset); ?>' src='<?php print htmlspecialchars($product_main["image_url"],ENT_QUOTES,$config_charset); ?>' /></div>
...and then enclose the IMG within an A element linking to tapestry_buyURL($product_main) for example;
<div class='small-8 medium-4 columns'><a href='<?php print tapestry_buyURL($product_main); ?>'><img alt='<?php print translate("Image of"); ?> <?php print htmlspecialchars($product_main["name"],ENT_QUOTES,$config_charset); ?>' src='<?php print htmlspecialchars($product_main["image_url"],ENT_QUOTES,$config_charset); ?>' /></a></div>
Hope this helps!
Cheers, David. -- PriceTapestry.com
Thank you!
©2006-2025 IAAI Software | Contact Us | Privacy Policy
Hi,
Edit html/product.php and look for the IMG element rendering of the main product image, which is in the Foundation template within line 32:
<div class='small-8 medium-4 columns'><img alt='<?php print translate("Image of"); ?> <?php print htmlspecialchars($product_main["name"],ENT_QUOTES,$config_charset); ?>' src='<?php print htmlspecialchars($product_main["image_url"],ENT_QUOTES,$config_charset); ?>' /></div>
...and then enclose the IMG within an A element linking to tapestry_buyURL($product_main) for example;
<div class='small-8 medium-4 columns'><a href='<?php print tapestry_buyURL($product_main); ?>'><img alt='<?php print translate("Image of"); ?> <?php print htmlspecialchars($product_main["name"],ENT_QUOTES,$config_charset); ?>' src='<?php print htmlspecialchars($product_main["image_url"],ENT_QUOTES,$config_charset); ?>' /></a></div>
Hope this helps!
Cheers,
David.
--
PriceTapestry.com