VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Customization
 show pictures in LEFT column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xcraft
Starting Member

Hong Kong
3 Posts

Posted - October 21 2011 :  07:29:52  Show Profile  Reply with Quote
Hi, as in many shops, the left column shows our main product categories. But standard, this is only just text.

We want the category picture to be always visible in the left column, like a fixed column wide picture.

Catergory1
[picture]
Category2
[picture]
Category3
etc

I searched whole VPASP but can't find a "how to".

Is this possible at all?

Tnx in advance for any feedback.

Sportdietshop.com

diegomilito
VP-ASP Expert

Argentina
723 Posts

Posted - October 22 2011 :  00:34:09  Show Profile  Reply with Quote
edit file shopproductsubs.asp

and please find this line :

name = catrs("catdescription")

and then after you locate that code, under that code, you place this new code :

dim catimagename
catimagename = catrs("catimage")

Also, please find this lines :

if hasSubcategory = "" then
mylink = "<a href=""shopdisplayproducts.asp?id=" & cid & "&cat=" & Server.URLEncode(replace(name,"&","&")) & addwebsesslink & """>" & name & "</a>"
else
mylink = "<a href=""shopDisplayCategories.asp?id=" & cid & "&cat=" & Server.URLEncode(replace(name,"&","&")) & addwebsesslink & """>" & name & "...</a>"
end if

please make a modification of the code i mentioned above and please replace with the code i mentioned below instead:

if hasSubcategory = "" then
mylink = "<a href=""shopdisplayproducts.asp?id=" & cid & "&cat=" & Server.URLEncode(replace(name,"&","&")) & addwebsesslink & """>" & name & "<BR><img src=""" & catimagename & """></a>"
else
mylink = "<a href=""shopDisplayCategories.asp?id=" & cid & "&cat=" & Server.URLEncode(replace(name,"&","&")) & addwebsesslink & """>" & name & "...<BR><img src=""" & catimagename & """></a>"
end if

I have this in my site and it works very well so far....

Chaoo...
Diego
Go to Top of Page

xcraft
Starting Member

Hong Kong
3 Posts

Posted - October 22 2011 :  06:01:26  Show Profile  Reply with Quote
Wow, many thanks, that was fast! Was expecting an answer in the line of "just check the pictures switch to ON", but this is rather more advanced stuff.

Couldn't have found this out myself, so out of respect for your black-belt VPASP knowledge I just did a honorary kata, right here in the office, and shouted out "Ush!" real loud.

Enjoy the weekend!




Go to Top of Page

diegomilito
VP-ASP Expert

Argentina
723 Posts

Posted - October 28 2011 :  04:59:20  Show Profile  Reply with Quote
lol that is fun xcraft! someday we will play a real karate!

Enjoy weekend too.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000