Welcome, Guest ( Customer Panel | Login )




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

nwright77
VP-CART New User

Luxembourg
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.



support
Administrator

4679 Posts

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

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,

Regards,
Michael
VPASP SUPPORT
Go to Top of Page

nwright77
VP-CART New User

Luxembourg
89 Posts

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

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
0 Item(s)
$0.00