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

Drop down error

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-20-2008, 03:00 AM
 
dxbsgt dxbsgt is offline
 

Newbie
  
Join Date: Dec 2008
Posts: 1
 

Question Drop down error

I am displaying a dropdown with product manufacturer list. It displays all the manufaturers list correctly. When i change the index, no effect on my website. It should go to manufacturer page . And also javascript doest show any page error. Please help me. Here is my code.

<select name="manufacture_list1" id="manufacture_list1"{if $onchange} onchange="javascript: self.location='manufacturers.php?manufacturerid='+ this.options[this.selectedIndex].value;"{/if}>
<option value="">{$lng.lbl_please_select_one}</option>
{foreach from=$manufacturers item=m}
<option value="{$m.manufacturerid}"{if $m eq $manufacturers} selected="selected"{/if}>{$m.manufacturer}</option>
{/foreach}
</select>
__________________
X-cart 4.1.10
Reply With Quote
  #2  
Old 12-20-2008, 03:02 AM
 
balinor balinor is offline
 

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

Default Re: Drop down error

Please be sure to read the guidelines on posting in the bugs forum - this is not stock X-Cart code, thus it is not a bug. You should check the Custom Mods forum, as there is already a mod that works for putting manufacturers into drop-downs.

Moving to Template Editing.
__________________
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:28 PM.

   

 
X-Cart forums © 2001-2020