Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Replacing Javascript in html_catalog.php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 02-10-2005, 03:28 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Please read the forum rules prior to posting. You need to put your x-cart version number in your signature and please don't post the same question in multiple forums. Thank you!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:59 PM.

   

 
X-Cart forums © 2001-2020