![]() |
Show Medium Sized Photo in pcShowProductH |
Post Reply
|
| Author | |
Jackalope
Groupie
Joined: 07-July-2006 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Topic: Show Medium Sized Photo in pcShowProductHPosted: 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. |
|
![]() |
|
carlosp
Newbie
Joined: 13-November-2007 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Posted: 13-November-2007 at 2:36pm |
|
I have the same question has anybody been able to figure this out? Thanks in advance.
|
|
![]() |
|
Greg Dinger
Certified ProductCart Developers
Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
Quote Reply
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%> |
|
![]() |
|
carlosp
Newbie
Joined: 13-November-2007 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
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%> ================================================= |
|
![]() |
|
carlosp
Newbie
Joined: 13-November-2007 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Jackalope
Groupie
Joined: 07-July-2006 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |