ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - Change images
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Change images

 Post Reply Post Reply
Author
Message
bp_travis View Drop Down
Newbie
Newbie


Joined: 27-June-2008
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote bp_travis Quote  Post ReplyReply Direct Link To This Post Topic: Change images
    Posted: 06-October-2008 at 3:43pm
How do you change the image used for the expand and close buttons in the main category menu? I want to also change their format to PNG instead of GIF. Thanks. 
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: 06-October-2008 at 3:54pm
You have to examine the script that generates the category navigation.  The image names are hard-coded in the genCatNavigation.asp script.
Back to Top
bp_travis View Drop Down
Newbie
Newbie


Joined: 27-June-2008
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote bp_travis Quote  Post ReplyReply Direct Link To This Post Posted: 06-October-2008 at 5:00pm
I actually edited the file names in the inc_catsmenu.asp file. I couldn't find the one you mentioned. However, when the menu initially loads it is still looking for the btn_expand.gif file instead of the new btn_expand.png file. But when you start using the menu it uses the new btn_expand.png file. 
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: 06-October-2008 at 5:49pm
genCatNavigation.asp writes a new copy of inc_WholeSaleCatMenu.inc and inc_RetailCatMenu.inc every time you call it.  Those files contain references to those graphics in the form of:
 
<tr><td valign="top"><img align="absmiddle" name="IMGCAT5" border="0" src="images/btn_expand.gif" onclick="javascript:UpDown(5);"></td><td width="100%" valign="top" class=""><a href="&nbsp;Accessorieshttp://www.yourstorename.com/productcart/pc/viewCategories.asp?idCategory=5">&nbsp;Accessories</a>
 
If you want a solution that will be flexible so that each time you re-generate the navigation, you really do need to study that file and alter it there.  Then use it to generate the nav file that correctly references your desired images.
Back to Top
bp_travis View Drop Down
Newbie
Newbie


Joined: 27-June-2008
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote bp_travis Quote  Post ReplyReply Direct Link To This Post Posted: 08-October-2008 at 4:38pm
Hello. Thanks for the info, but this is all I see in the inc_RetailCatMenu.inc file:

<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
</table>

Thanks
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.078 seconds.