ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - show/hide images on Recently viewed products
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

show/hide images on Recently viewed products

 Post Reply Post Reply
Author
Message
RBP Limited View Drop Down
Groupie
Groupie


Joined: 04-July-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote RBP Limited Quote  Post ReplyReply Direct Link To This Post Topic: show/hide images on Recently viewed products
    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,
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: 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"
 
Back to Top
RBP Limited View Drop Down
Groupie
Groupie


Joined: 04-July-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote RBP Limited Quote  Post ReplyReply Direct Link To This Post 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.

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.031 seconds.