X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   shipping options drop down menu = bad!! (https://forum.x-cart.com/showthread.php?t=29524)

Dongan 10-19-2007 07:32 PM

Re: shipping options drop down menu = bad!!
 
try cleaning up files in templates_s files.

tnpaintballers 10-22-2007 01:33 PM

Re: shipping options drop down menu = bad!!
 
Quote:

Originally Posted by Dongan
skin1/customer/main/cart.tpl

change this code

<SELECT name="shippingid" onchange="document.cartform.submit()">
{section name=ship_num loop=$shipping}
<OPTION value="{$shipping[ship_num].shippingid}" {if $shipping[ship_num].shippingid eq $cart.shippingid}selected{/if}>{$shipping[ship_num].shipping|trademark:$insert_trademark:"alt"}{if $config.Appearance.display_shipping_cost eq "Y" and ($login ne "" or $config.General.apply_default_country eq "Y" or $cart.shipping_cost gt 0)} ({include file="currency.tpl" value=$shipping[ship_num].rate}){/if}</OPTION>
{/section}
</SELECT>

to

{section name=ship_num loop=$shipping}
<INPUT type="radio" name="shippingid" value="{$shipping[ship_num].shippingid}" {if $shipping[ship_num].shippingid eq $cart.shippingid}checked{else}onclick="document.ca rtform.submit()"{/if}>{$shipping[ship_num].shipping|trademark:$insert_trademark:"alt"}{if $config.Appearance.display_shipping_cost eq "Y" and ($login ne "" or $config.General.apply_default_country eq "Y" or $cart.shipping_cost gt 0)} ({include file="currency.tpl" value=$shipping[ship_num].rate}){/if}<br />
{/section}

I can't find this at all in customer/main/cart.tpl. Check again where you edited this.

Dongan 10-23-2007 03:58 AM

Re: shipping options drop down menu = bad!!
 
if you enabled fast lane checkout, you should look at skin1/modules/Fast_Lane_Checkout/shipping_methods.tpl

tnpaintballers 10-23-2007 06:58 AM

Re: shipping options drop down menu = bad!!
 
Quote:

Originally Posted by Dongan
if you enabled fast lane checkout, you should look at skin1/modules/Fast_Lane_Checkout/shipping_methods.tpl

Not there either. This is that file.

PHP Code:

{* $Idshipping_methods.tpl,v 1.7.2.5 2007/02/13 11:55:39 twice Exp $ *}
<
table cellpadding="5" cellspacing="5" width="100%">

<
tr>
<
td valign="top" width="30%">
{include 
file="customer/main/subheader.tpl" title=$lng.lbl_shipping_address}
{if 
$userinfo}
{
$userinfo.s_address}<br />
{if 
$userinfo.s_address_2}
{
$userinfo.s_address_2}<br />
{/if}
{
$userinfo.s_city}<br />
{
$userinfo.s_statename}<br />
{
$userinfo.s_countryname}<br />
{
$userinfo.s_zipcode}
{else}
No data
{/if}

{if 
$login ne ""}
<
br /><br />
{include 
file="buttons/modify.tpl" href="register.php?mode=update&action=cart"}
{/if}

</
td>
<
td valign="top" width="70%">
{include 
file="customer/main/subheader.tpl" title=$lng.lbl_delivery}

{*  
ERRORno shipping methods available [begin]  *}
{if 
$shipping_calc_error ne ""}
{
$shipping_calc_service} {$lng.lbl_err_shipping_calc}<br />
<
font class="ErrorMessage">{$shipping_calc_error}</font><br />
{/if}
{if 
$shipping eq "" and $need_shipping}
<
font class="ErrorMessage">{$lng.lbl_no_shipping_for_location}</font><br />
<
br />
{/if}
{*  
ERRORno shipping methods available [end]  *}

{*  
Select the shipping carrier [begin]  *}
{if 
$login ne "" or $config.General.apply_default_country eq "Y" or $cart.shipping_cost gt 0}

{if 
$active_modules.UPS_OnLine_Tools and $config.Shipping.realtime_shipping eq "Y" and $config.Shipping.use_intershipper ne "Y" and $show_carriers_selector eq "Y"}
<
font class="FormButton"><label for="">{$lng.lbl_shipping_carrier}:</label> </font>
<
select name="selected_carrier" id="selected_carrier" onchange="javascript: self.location='cart.php?mode=checkout&amp;action=update&amp;selected_carrier='+this.options[this.selectedIndex].value;">
<
option value="UPS"{if $current_carrier eq "UPS"selected="selected"{/if}>{$lng.lbl_ups_carrier}</option>
<
option value=""{if $current_carrier ne "UPS"selected="selected"{/if}>{$lng.lbl_other_carriers}</option>
</
select>
<
br /><br />
{/if}

{/if}
{*  
Select the shipping carrier: [end]  *}

{*  
Select the shipping method: [begin]  *}
{if 
$shipping ne "" and $need_shipping}

{if 
$config.Shipping.realtime_shipping eq "Y" && $config.Shipping.use_intershipper ne "Y" && (!$active_modules.UPS_OnLine_Tools || $show_carriers_selector ne 'Y' || $current_carrier ne 'UPS')}
{/if}
{* 
$arb_account_used *}

{if 
$login ne "" || $config.General.apply_default_country eq "Y" || $cart.shipping_cost gt 0}
{foreach 
from=$shipping item=s}
<
table cellpadding="1" cellspacing="0" width="100%"{cycle values=" class='TableSubHead', "}>
<
tr>
    <
td width="5"><input type="radio" id="shippingid{$s.shippingid}name="shippingid" value="{$s.shippingid}"{if $s.shippingid eq $cart.shippingidchecked="checked"{/if}{if $allow_codonclick="javascript: display_cod({if $s.is_cod eq 'Y'}true{else}false{/if});"{/if} /></td>
    <
td><label for="shippingid{$s.shippingid}">{$s.shipping|trademark:$insert_trademark}{if $s.shipping_time ne ""} - {$s.shipping_time}{/if}{if $config.Appearance.display_shipping_cost eq "Y" and ($login ne "" or $config.General.apply_default_country eq "Y" or $cart.shipping_cost gt 0)} ({include file="currency.tpl" value=$s.rate}){/if}</label></td>
</
tr>
{if 
$s.warning ne ""}
<
tr>
    <
td>&nbsp;</td>
    <
td class="{if $s.shippingid eq $cart.shippingid}ErrorMessage{else}SmallText{/if}">{$s.warning}</td>
</
tr>
{/if}
</
table>
{/foreach}

<
br /><br />

{/if}
{else}
<
input type="hidden" name="shippingid" value="0" />
{/if}
{*  
Select the shipping method: [end]  *}

{include 
file="customer/main/dhl_ext_countries.tpl"}
</
td>
</
tr>

</
table>

{if 
$display_ups_trademarks}
{include 
file="modules/UPS_OnLine_Tools/ups_notice.tpl"}
{/if} 



All times are GMT -8. The time now is 05:54 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.