![]() |
Catogory - product Image display |
Post Reply
|
| Author | |
intour
Senior Member
Joined: 30-June-2006 Location: United Kingdom Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Topic: Catogory - product Image displayPosted: 27-March-2009 at 1:42pm |
|
In one of my clients stores the product display (in the category view) is set to: Show images horizontally with 1 image per row.
This works ok but because it shows the product thumbnail the image is too small. I want to display the general or large image here instead.
I tried changing the references in the pcShowProductH.asp file from smallimageUrL to largeImageUrl but when I uploaded themodified file I got 'no image available' instead of the large image.
Can anyone help on this please.
Thanks
Nigel
|
|
![]() |
|
netprofits
Certified ProductCart Developers
Joined: 05-January-2006 Location: United States Status: Offline Points: 22 |
Post Options
Thanks(0)
Quote Reply
Posted: 27-March-2009 at 1:48pm |
|
Hi Nigel, you need to make sure the SQL query that loads the product data includes the field for the image you want to display. In viewcategories.asp, is only loads the smallImageUrl.
|
|
![]() |
|
Greg Dinger
Certified ProductCart Developers
Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
Quote Reply
Posted: 27-March-2009 at 1:54pm |
|
around line 608 of viewcategories.asp you have to edit the query, replacing smallImageUrl with the image of your choice.
If all you do is change that query, this will still work, or you can change it to "large", making certain that the name here matches the name in pcShowProductH.asp:
pSmallImageUrl=pcArray_Products(8,tCnt) '// rs("smallImageUrl")
|
|
![]() |
|
intour
Senior Member
Joined: 30-June-2006 Location: United Kingdom Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Posted: 27-March-2009 at 2:06pm |
|
Thanks for your quick replies. I omitted to mention that I had also changed the query references in the viewcategories.asp file from smallImageUrl to largeImageUrl. I even cheked the name of the large image in the database to be sure.
I'll go back and try it again - it's possible I missed somehting or made a typo. It's reassuring to know that I was at least doing the correct thing (or so I thought ).
I'll let you know how I get on.
|
|
![]() |
|
intour
Senior Member
Joined: 30-June-2006 Location: United Kingdom Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Posted: 27-March-2009 at 2:31pm |
|
Success !
I had another go and still no luck but then I noticed another reference to smallImageUrl further up in viewcategories.asp here:
'// Query Products of current category
query="SELECT products.idProduct, products.sku, products.description, products.price, products.listhidden, products.listprice, products.serviceSpec, products.bToBPrice, products.largeImageUrl,products.noprices,products.stock, products.noStock,products.pcprod_HideBTOPrice, POrder,products.FormQuantity,products.pcProd_BackOrder FROM products, When I changed that one as well it worked perfectly. It makes sense to me now I see it as it needs to call the largeImageURL to reference it later.
Many thanks for your help guys.
Nigel
|
|
![]() |
|
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 |