Print Page | Close Window

show/hide images on Recently viewed products

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=1920
Printed Date: 30-November-2024 at 3:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: show/hide images on Recently viewed products
Posted By: RBP Limited
Subject: show/hide images on Recently viewed products
Date Posted: 19-August-2008 at 8:35am
Hi,
 
Is there an option to turn off the images on the Recently viewed products? I only want to show the product titles.
 
Kind regards
 
Wayne,



Replies:
Posted By: Greg Dinger
Date Posted: 19-August-2008 at 11:23am
/productcart/pc/smallRecentProducts.asp is the file you will need to look at.  It contains no logic that allows you to turn off the image via a switch-setting in the admin.  However, it's not that hard to hide the image.  Here's an idea.  The script contains the following code:
 
  ' Get product image and sku
  pcvStrSku = tmpVPrdArr(2,tmpIndex)
  pcvStrSmallImage = tmpVPrdArr(3,tmpIndex)
    if pcvStrSmallImage = "" or pcvStrSmallImage = "no_image.gif" then
      pcvStrSmallImage = "hide"
end if
 
 
If you change it as follows, the image will not be displayed (replace XXXXX with your name or initials so you can remember what you did later when you want to apply changes to an upgraded release of PC).
 
  ' Get product image and sku
  pcvStrSku = tmpVPrdArr(2,tmpIndex)
  pcvStrSmallImage = tmpVPrdArr(3,tmpIndex)
    if pcvStrSmallImage = "" or pcvStrSmallImage = "no_image.gif" then
      pcvStrSmallImage = "hide"
end if
' modified by XXXXX to permanently hide images
      pcvStrSmallImage = "hide"
 


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

Certified ProductCart Developer

Web Design/Development/Hosting

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


Posted By: RBP Limited
Date Posted: 19-August-2008 at 11:35am

Thanks for that. I was looking for an option in the admin as the code implies you can set pcvStrSmallImage to = hide

 

Cheers

 

Wayne.




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