View Single Post
  #8  
Old 05-28-2011, 07:38 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Shipping Method Drop Down Menu

Quote:
Originally Posted by cflsystems
You can edit the template that shows the shipping methods and just add another <option> to the <select> and make it selected by default. Which template depends on the checkout you are using - if it's FLC check in modules/Fast_Lane_Checkout/

How do I make it selected by default? I'm using 4.4.3 One Page Checkout. Here is what I have...

Code:
{* $Id: select_carrier.tpl,v 1.1 2010/05/21 08:32:18 joy Exp $ vim: set ts=2 sw=2 sts=2 et: *} <select{if $name} name="{$name}"{/if}{if $id} id="{$id}"{/if}{if $onchange} onchange="{$onchange}"{/if}> <option value=""{if $current_carrier eq ""} selected="selected"{/if}>Please Select</option> <<<=== THIS PART ADDED {if $is_ups_carrier_empty ne "Y"} <option value="UPS"{if $current_carrier eq "UPS"} selected="selected"{/if}>{$lng.lbl_ups_carrier}</option> {/if} {if $is_other_carriers_empty ne "Y"} <option value=""{if $current_carrier ne "UPS"} selected="selected"{/if}>{$lng.lbl_other_carriers}</option> {/if} </select>

Instead of "Please Select" coming up, it defaults to "Other Carriers", regardless of what the added option vales are.

Thanks in advance!
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote