You are here:  » Attach jump.php to product page image


Attach jump.php to product page image

Submitted by Retro135 on Tue, 2017-02-07 06:10 in

Hi David,
How can I attach the jump.php code to the product page image (the single product page)?

Submitted by support on Tue, 2017-02-07 08:50

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

Submitted by Retro135 on Tue, 2017-02-07 15:01

Thank you!