[% UNLESS confirm || admin %]
[% dw.form_auth() %] [% END %] [% "" UNLESS receipt %] [% "" IF admin %] [% "" IF admin %] [% FOREACH item IN cart.items %] [% IF receipt %] [%# empty column for receipt %] [% ELSIF item.noremove %] [% ELSE %] [% END %] [% "" IF admin %] [% IF admin %] [% END %] [% END %]
[% dw.ml('widget.shopcart.header.item') %] [% dw.ml('widget.shopcart.header.deliverydate') %] [% dw.ml('widget.shopcart.header.to') %] [% dw.ml('widget.shopcart.header.from') %]" _ dw.ml('widget.shopcart.header.random') _ " [% dw.ml('widget.shopcart.header.price') %]ADMIN
[% UNLESS receipt %] [% form.submit( name = 'removeselected', value = dw.ml('widget.shopcart.btn.removeselected'), class="button secondary") %] [% form.submit( name = 'discard', value = dw.ml('widget.shopcart.btn.discard'), class="button secondary") %] [% END %] [% dw.ml('widget.shopcart.total') %] [% cart.display_total %]
[% form.checkbox( name => "remove_${item.id}" value => 1 ) %][% item.name_html %] [% "

${item.note}

" IF item.note %]
[% item.deliverydate ? item.deliverydate : dw.ml('widget.shopcart.deliverydate.asap') %] [% item.t_html( 'admin' => admin ) %] [% item.from_html %]" _ is_random(item) _ "[% item.display_paid %] [% item.t_email ? admin_col(item) : '--' %]
[% IF checkout_ready %]

[% dw.ml('widget.shopcart.paymentmethod') %] [%# if the cart is zero cost, then we can just let them check out %] [% IF cart.total_cash == 0.00 %] [% form.submit( name = 'checkout_free', value = dw.ml('widget.shopcart.paymentmethod.free') ) %] [% ELSE %] [%# google has very specific rules about where the buttons go and how to display them # ... so we have to abide by that %] [% IF gco_avail %] or use    [% END %] [%# Stripe credit card processing %] [% form.submit( name = 'checkout_stripe', value = dw.ml('widget.shopcart.paymentmethod.creditcard'), disabled = !cc_avail ) %] [% IF cmo_avail %] [% form.submit( name = 'checkout_cmo', value = dw.ml('widget.shopcart.paymentmethod.checkmoneyorder'), disabled = disable_cmo ) %] [% END %] [% IF !cc_avail %]

[% dw.ml('widget.shopcart.paymentmethod.creditcard.whydisabled') %] [% END %] [% IF cmo_avail && disable_cmo %]

[% dw.ml( 'widget.shopcart.paymentmethod.checkmoneyorder.whydisabled', { minimum => cmo_min } ) %] [% END %] [% END %]

[% END %] [% UNLESS confirm || admin %]
[% END %]