Print Page | Close Window

Show Medium Sized Photo in pcShowProductH

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=919
Printed Date: 22-April-2025 at 3:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Show Medium Sized Photo in pcShowProductH
Posted By: Jackalope
Subject: Show Medium Sized Photo in pcShowProductH
Date Posted: 26-June-2007 at 2:24pm

I think the code I need to change in pcShowProductH.asp in order to show the medium sized photo is:

pSmallImageUrl

However when I change it to pMediumImageUrl, I only get the NoImage.gif. I even tried changing it to pLargeImageUrl with no luck.

Does anyone have an idea to what this should be changed to? Thanks in advance.




Replies:
Posted By: carlosp
Date Posted: 13-November-2007 at 2:36pm
I have the same question has anybody been able to figure this out?  Thanks in advance.


Posted By: Greg Dinger
Date Posted: 13-November-2007 at 10:59pm

Chris - note that the first line in the subject block of code is testing pSmallImageUrl for blank. You need to test pMediumImageUrl instead.

 

  <%if pSmallImageUrl<>"" then%>
    <p><a href="store/pc/viewPrd.asp?idcategory=<%=pIdCategory%> &idproduct=<%=pIdProduct%>" <%if scStoreUseToolTip="1" then%>onmouseover="javascript:document.getPrd.idproduct.v alue='<%=pIdProduct%>'; sav_callxml='1'; return runXML1('prd_<%=pIdProduct%>');" onmouseout="javascript: sav_callxml=''; hidetip();"<%end if%>><img src="store/pc/catalog/<%response.write pSmallImageUrl%>" <%if scStoreUseToolTip<>"1" then%>alt="<%=pDescription%>"<%end if%>></a></p>



Posted By: carlosp
Date Posted: 14-November-2007 at 5:27pm
Well I've tried replacing pSmallImageUrl with pMediumImageUrl but it does not seem to work, it always returns the NoImage.gif

this is what i have. I simply replaced pSmallImageUrl with pMediumImageUrl
=================================================

<%if pMediumImageUrl<>"" then%>
                <a href='viewPrd.asp?idcategory=<%=pIdCategory%>&idpr oduct=<%=pIdProduct%>' <%if scstoreusetooltip="1" then%>onmouseover="javascript:document.getPrd.idproduct.v alue='<%=pIdProduct%>'; sav_callxml='1'; return runXML1('prd_<%=pIdProduct%>');" onmouseout="javascript: sav_callxml=''; hidetip();"<%end if%>><img src="catalog/<%response.write pMediumImageUrl %>"></a>
            <%else%>
                <a href='viewPrd.asp?idcategory=<%=pIdCategory%>&idpr oduct=<%=pIdProduct%>' <%if scstoreusetooltip="1" then%>onmouseover="javascript:document.getPrd.idproduct.v alue='<%=pIdProduct%>'; sav_callxml='1'; return runXML1('prd_<%=pIdProduct%>');" onmouseout="javascript: sav_callxml=''; hidetip();"<%end if%>><img src="catalog/no_image.gif" width="50" height="50"></a>
            <%end if%>

=================================================





Posted By: carlosp
Date Posted: 14-November-2007 at 5:54pm
Never mind I found it the solution.  you have to change the query 'Query Products of current category' so it pulls the medium image url which is called ImageURL not pMediumImageUrl   then when change the rs(smallImageURL) to rs(ImageURL) and store it in variable you want which is what you call in the response.write pMediumImageUrl or what ever you want to call it.




Posted By: Jackalope
Date Posted: 16-November-2007 at 11:43pm
Wow, that was way back in June when I first purchased PC. At the time after I couldn't get it to work I simply specified my Medium sized photo for both the small image and medium image. The problem that I still have though is that when PC scales the medium sized image down on the product details page so it is represented by a thumbnail under the product view, the resulting image isn't too pleasant. But that's the subject of many other threads about PC resizing images.



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