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
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 image in place of textlink
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

VP-ASP New User

89 Posts

Posted - April 02 2006 :  04:42:48  Show Profile  Reply with Quote
I have got my category list as going down instead of across (had many subcategories and they were distorting the page).

i would like to swap the link name for the corresponding image. i noticed in the shopdisplaycategories.asp file, the following:

if strSubcategory ="" then
response.write "<a HREF=""shopdisplayproducts.asp?id=" & id & "&cat=" & Server.URLEncode(name) & addwebsesslink & """>" & name & "</a>"

is it possible to change the & name & with
<img border="0" src="[cimageurl]"> or something along those lines

i have got this far in customising it the way i want it, i would like to know if i am heading in the right direction.


4263 Posts

Posted - April 02 2006 :  05:14:16  Show Profile  Visit support's Homepage  Reply with Quote

Are you using VPASP version 6.0?

By default, category images should be displayed on shopdisplaycategories.asp if you have assigned an image to the catimage field for that category.

If there is an image assigned to catimage, it will be stored in the strcatimage variable in shopdisplay categories.

If you want to modify the code, then you can use the strcatimage variable instead of [cimageurl] as you have shown in your example.

Thank you,

Go to Top of Page

VP-ASP New User

89 Posts

Posted - April 02 2006 :  06:12:56  Show Profile  Reply with Quote

yes i have 6.0. I actually didn't see the catimage until i opened my database categories table (duh). thank you for the advice.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000