[comment] ui_template: Yes ui_template_name: noleft [/comment] [tmp page_title]__COMPANY__ -- [L]Select Shipping[/L][/tmp] @_NOLEFT_TOP_@ [include include/checkout/initialization] [comment] Form intro -- the input elements are largely in the individual tables in include/checkout/* [/comment]
[form-session-id]
[if type=explicit compare="[error all=1 keep=1]"] [tmp error_display]

[error all=1 show_error=1 joiner="
"]

[/tmp] [/if] [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]
Shipping selection
[if scratch error_display] [/if] [if session ship_message] [/if]
 
  Shipping weight: [weight hide=1][scratch total_weight] lbs
  [tmp tmp_shipmodes][shipping possible=1][/tmp] [seti ship_options][filter op="strip line2options" interpolate=1] [loop list="[scratch tmp_shipmodes]"] [set num][loop-increment][/set] [loop-code]=[shipping-desc mode="[loop-code]"] ([shipping mode="[loop-code]"]) [/loop] [/filter][/seti] [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 widget=radio_left_1 mode="[scratch tmp_shipmodes]"]
 
 

[scratchd error_display]
 

[calc]delete $Session->{ship_message}[/calc]
 
@_NOLEFT_BOTTOM_@