[tmp page_title]__COMPANY__ -- [L]Select Shipping[/L][/tmp] [tmp display_class]noleft[/tmp] [include include/checkout/initialization] @_TOP_@
[edisplay show_var=0 keep=1] [set Check_shipmode] &fatal=no &fail=@@MV_PAGE@@ mv_shipmode=mandatory You need to select a shipping mode. [cgi name=ship_ok set=""] [cgi name=mode_ok set=""] [seti allowed_modes][either][query list=1 sql="select shipmodes from state where state = '[value state]' and country = '[value country]'"][sql-code][/query][or][data table=country col=shipmodes key="[value country]"][/either][/seti] [calc] $CGI->{mode_ok} = $Scratch->{allowed_modes} =~ /(^|\s)$CGI->{mv_shipmode}(\s|$)/; return; [/calc] &fatal=yes mode_ok=mandatory Shipping type [shipping-desc] not valid for country [value country]. [/set] [set jump_to_paymode] mv_nextpage=ord/payment [/set]
[L]Shipping selection[/L] [form-session-id]

[L]Shipping weight[/L]: [scratch total_weight] lbs

[tmp tmp_shipmodes][shipping possible=1][/tmp] [if !scratch total_weight] [set num]0[/set] [/if] [if scratch num <= 1] [if value mv_same_billing] [set finalize_back]ord/shipping[/set] [else] [set finalize_back]ord/billing[/set] [/else] [/if] [bounce page=ord/finalize] [else] [set finalize_back]ord/shipmode[/set] [/else] [/if]
[shipping mode="[scratch tmp_shipmodes]" label=1 format='
%D (%F)
' ]
[calcn] return unless my $sm = $Session->{ship_message}; my %msgs; for(split /\./, $sm) { next if /^No match/; $msgs{$_} = 1; } $Session->{ship_message} = join '
', keys %msgs; return; [/calcn] [if session ship_message]
[calc]delete $Session->{ship_message};[/calc]
[/if]
@_BOTTOM_@