Print Page | Close Window

Click Main Product Image to Zoom

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=923
Printed Date: 21-April-2025 at 5:07am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Click Main Product Image to Zoom
Posted By: Jackalope
Subject: Click Main Product Image to Zoom
Date Posted: 27-June-2007 at 1:19pm

I finally figured it out. If you want your main product image that's shown in the product details page to act the same as the "zoom" icon, then add the following code to the viewPrdCode.asp file:

<a href="javascript:enlrge('catalog/<%=pLgimageURL%>')"

Typo in the code. The last part should be ">

You should place it in the section "Show Product Image (If there is one)", around line 869. It should be placed right above:

<img name='mainimg' src='<%=pcv_tmpNewPath%>catalog/<%=pImageUrl%>' alt="<%=pDescription%>" />

Hope this helps all the newbies like myself.




Replies:
Posted By: Jackalope
Date Posted: 27-June-2007 at 2:51pm
It appears as though there is some issue when doing it this way. If you have additional images of your product, when you click to view the additional images in the the website it pulls the pcs_ProductImage routine from the viewPrdCode.asp file. Now your large, detail image also has the javascript:enlarge command assigned to it and if you click the image, you will get an error on page message. I'll see if I can figure this out and post my results.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net