ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Show Medium Sized Photo in pcShowProductH
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Show Medium Sized Photo in pcShowProductH

 Post Reply Post Reply
Author
Message
Jackalope View Drop Down
Groupie
Groupie


Joined: 07-July-2006
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jackalope Quote  Post ReplyReply Direct Link To This Post Topic: Show Medium Sized Photo in pcShowProductH
    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.

Back to Top
carlosp View Drop Down
Newbie
Newbie


Joined: 13-November-2007
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote carlosp Quote  Post ReplyReply Direct Link To This Post Posted: 13-November-2007 at 2:36pm
I have the same question has anybody been able to figure this out?  Thanks in advance.
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post 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>

Back to Top
carlosp View Drop Down
Newbie
Newbie


Joined: 13-November-2007
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote carlosp Quote  Post ReplyReply Direct Link To This Post 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%>

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



Back to Top
carlosp View Drop Down
Newbie
Newbie


Joined: 13-November-2007
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote carlosp Quote  Post ReplyReply Direct Link To This Post 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.


Back to Top
Jackalope View Drop Down
Groupie
Groupie


Joined: 07-July-2006
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jackalope Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.