Print Page | Close Window

Catogory - product Image display

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=2595
Printed Date: 24-July-2025 at 11:03pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Catogory - product Image display
Posted By: intour
Subject: Catogory - product Image display
Date Posted: 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
 
 


-------------
http://www.innerview.co.uk - Innerview
Productcart Platinum Reseller
Web Design/Hosting/Virtual Tours



Replies:
Posted By: netprofits
Date 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.

-------------
NetProfits Internet Consulting

Certified ProductCart Developer

http://www.nicwebdesign.com" rel="nofollow - Our Site


Posted By: Greg Dinger
Date 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") 


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: intour
Date 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.
 
 


-------------
http://www.innerview.co.uk - Innerview
Productcart Platinum Reseller
Web Design/Hosting/Virtual Tours


Posted By: intour
Date 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
 
 


-------------
http://www.innerview.co.uk - Innerview
Productcart Platinum Reseller
Web Design/Hosting/Virtual Tours



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