View Single Post
  #1  
Old 02-10-2005, 12:48 AM
 
sdiggens sdiggens is offline
 

Newbie
  
Join Date: Jul 2004
Posts: 3
 

Default Replacing Javascript in html_catalog.php

Hi All,

I have a slight issue I'm trying to work around with producing a static version of my catalog and I'm wondering if any of you geniuses can help?

In my home.tpl I have the following code:

Code:
<td height="19" bgcolor="#FFFFFF" align="center" style="padding:2px;"><span style="font-weight:normal;">You are currently browsing: {if $location} <form name="cat" id="cat"> <select name="currentcat" id="currentcat" onchange="document.location.href=this[this.selectedIndex].value" align="absmiddle" style="visibility:visible;"> {strip} {section name=position loop=$location} {if $location[position].1 ne "" }<option value="{$location[position].1}" {if %position.last%}selected{/if}>б╚ {$location[position].0}{/if} {if $location[position].1 ne "" }</option>{/if} {/section} {/strip} </select> </form> {/if} </span></td>

I was wondering if there's anybody who knows what code I could use in html_catalog.php to strip out the
Code:
{$location[position].1}
and replace it with the static page reference instead?

Any help would be greatly appreciated. I'm currently running X-Cart Gold 4.0.11.

Thanks.
__________________
Stu
Mastora <www.mastora.com>

Using X-Cart Gold 4.0.11
Reply With Quote