[comment] ui_template: yes ui_template_name: leftonly [/comment] [tmp page_title]__COMPANY__ -- [L]Shopping Cart[/L][/tmp] [tmp basket_page]1[/tmp] [control reset=1] [control-set] [component]search_box_small[/component] [matches]10[/matches] [/control-set] [control-set] [component]saved_carts_list_small[/component] [/control-set] [control-set] [component]product_tree[/component] [page_class]all[/page_class] [set_selector]left[/set_selector] [/control-set] [control-set] [/control-set] [control-set] [component]cross[/component] [banner][L]See also[/L][/banner] [cross_codes][/cross_codes] [size]3[/size] [cols]3[/cols] [/control-set] [control reset=1] @_LEFTONLY_TOP_@ [error auto=1 style="color: red"] [if cgi empty_cart] [calc] if($CGI->{empty_cart} > 1) { @$Items = (); } else { return q{ }; } return; [/calc] [/if]
[L]Your Current Shopping Cart[/L]:
[calc] my $cname = $Config->{CookieName} || 'MV_SESSION_ID'; $Scratch->{have_cookie} = $Tag->read_cookie($cname) and delete $Scratch->{tried}; return; [/calc] [if scratch have_cookie] [elsif scratch tried] [L CART_MSG1]You must have cookies set to leave the basket. Check out now or forever lose your shopping cart.[/L] [/elsif] [else] [set tried]1[/set] [bounce href="[area ord/basket]"] [/else] [/if]
[form-session-id]
[if items] [then] [item-list] [item-change 2][condition]2[/condition] [/item-change 2] [item-calc] #Log("Checking master item $master"); $row_class = ++$count % 2 ? 'cartnorm' : 'cartalt'; my $item = '[item-increment]'; my $up = q{[item-data merchandising upsell_to]}; my $cr = q{[item-data merchandising cross_sell]}; $upsell_remove{'[item-code]'} = 1; $cross_remove{'[item-code]'} = 1; my %seen = ( '' => 1 ); $Scratch->{upsell} .= " $up" if $up; $Scratch->{cross_codes} .= " $cr" if $cr; my @up = split /\s+/, $Scratch->{upsell}; my @cr = split /\s+/, $Scratch->{cross_codes}; @up = grep ( (!$seen{$_}++ && ! $upsell_remove{$_}), @up); @cr = grep ( (!$seen{$_}++ && ! $cross_remove{$_}), @cr); $Scratch->{upsell} = join " ", @up; $Scratch->{cross_codes} = join " ", @cr; return; [/item-calc] [input-filter name="[item-quantity-name]" op="nullselect digits_dot"][/input-filter] [if discount [item-code]] [else] [/else] [/if] [/item-list] [/then] [else] [/else] [/if]
 [L]Remove[/L] [L]SKU[/L] [L]Description[/L] [L]Quantity[/L] [L]Price[/L] [L]Extension[/L] 
[if-item-param !mv_si] [/if-item-param] [item-sku] [item-description]

[if scratch dealer] [if-item-data pricing sku]
[page quantity [item-code]] [L]QUANTITY PRICING[/L] [/if-item-data] [/if] [if-item-field weight] [seti weight][summary amount=`[item-quantity] * [item-field weight]`][/seti] [/if-item-field] [if-item-param mv_min_under]
[msg arg.0="[item-param mv_min_quantity]"]Minimum order quantity of %s enforced.[/msg] [/if-item-param] [if-item-param mv_max_over]
[msg arg.0="[item-param mv_max_quantity]"]Maximum order quantity of %s enforced.[/msg] [/if-item-param] [if-item-data merchandising others_bought] [if compare="__CART_OTHERS_BOUGHT__"] [perl tables=products] my $hash = [item-data merchandising others_bought]; my @ary = sort { $hash->{$b} <=> $hash->{$a} } keys %$hash; return '' unless @ary; my %in_basket; splice(@ary, 3); for(@{$Carts->{main}}) { $in_basket{$_->{code}} = 1; } @ary = grep ! $in_basket{$_}, @ary; return '' unless @ary; my $out = <<'EOF';
[L] Customers who bought this item also bought [/L]:
EOF for(@ary) { my $desc = tag_data( 'products', 'description', $_); $out .= <$desc
EOF } return $out . '
'; [/perl] [/if] [/if-item-data] [if compare="__CART_UPSELL__"] [set upsell_found][/set] [loop list="[item-data merchandising upsell_to]"] [if scratch upsell_found]
[L] Other items you may like [/L]:
[list] [loop-calc] @ary = grep $_->{code} eq q{[loop-code]}, @{$Carts->{main}}; return if scalar @ary; $Scratch->{upsell_found} = 1; return q{[loop-description]
}; [/loop-calc] [/list]
[/if] [/loop] [/if]
[if-item-param !mv_si] [table-organize cols=4 table=' ' font="size=1" pretty=1] [item-options td=1 label=1 bold=1 price=1 blank-label="--select--"] [/table-organize] [/if-item-param]
[L]Regular price[/L] [item-price]
[L]Your price[/L]: [discount-price]
[L]You save[/L]: [item-difference]
[item-subtotal]
[item-discount-subtotal]
[L]You save[/L]: [item-discount]
[item-price] [item-subtotal]
[L]No items at the moment.[/L]

[button text="[L]Check Out[/L]" class=button3 form=basket ] mv_todo=return mv_nextpage=__CHECKOUT_PAGE__ [/button]  
[L]Shipping Weight[/L]: [summary format="%s" total=1]
[L]Subtotal[/L]: [subtotal]

[set Save Cart] mv_todo=return mv_nextpage=ord/basket save_cart=none [save_cart nickname="[value c_nickname]" recurring="[value c_recurring]"] [/set] [if !scratch just_nickname] [seti just_nickname][tag time]%b-%d-%Y[/tag][/seti] [/if] [if session logged_in][then] [if value save_cart eq 'recurring']
[L]To save this recurring order, give it a nickname, then press 'Save Cart'.[/L]
[L]Nickname[/L]: [form-session-id]
[elsif value save_cart eq 'cart']
[L]To save this cart, give it a nickname, then press 'Save Cart'.[/L]
[L]Nickname[/L]: [form-session-id]
[/elsif] [else] [button text="[L]Save This Cart[/L]" class=button3 form=basket mv_check="Save This Cart" ] mv_todo=return mv_nextpage=ord/basket save_cart=cart [/button] [button text="[L]Set As Recurring Order[/L]" class=button3 form=basket mv_check="Set As Recurring Order" ] [set save_cart]recurring[/set] mv_todo=return mv_nextpage=ord/basket save_cart=recurring [/button] [/else] [/if] [/then] [else] [/else] [/if]


@_LEFTONLY_BOTTOM_@