[tmp page_title]__COMPANY__ -- [L]Shopping Cart[/L][/tmp] [tmp display_class]leftonly[/tmp] [set tag_tax_lookup_estimate_mode]1[/set] [control reset=1] [control-set] [component]product_tree[/component] [show_categories]1[/show_categories] [output]left[/output] [/control-set] [control-set] [component]cross[/component] [banner][L]See also[/L][/banner] [cross_codes][/cross_codes] [size]3[/size] [cols]col-xs-6 col-sm-3 col-md-6[/cols] [output]left[/output] [/control-set] [control reset=1] @_TOP_@

# [L]Your Current Shopping Cart[/L]

[edisplay] [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]

[L]Remove[/L] | [L]SKU[/L] | [L]Description[/L] | [L]Quantity[/L] | [L]Price[/L] | [L]Extension[/L]
--- | --- | --- | --- | --- | ---
[if items] [then] [item-list] [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]
[if-item-param !mv_si] [else] [/else] [/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 = q{ [L]Customers who bought this item also bought[/L]: }; for(@ary) { my $desc = tag_data( 'products', 'description', $_); my $url = $Tag->area($_); $out .= qq{ $desc }; } 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=2 table=' class="table table-bordered table-striped table-condensed small"' pretty=1] [item-options td=1 label=1 bold=1 price=1 blank-label="--select--"] [/table-organize] [/if-item-param] [input-filter name="[item-quantity-name]" op="nullselect digits_dot"][/input-filter] | [if discount [item-code]] | [L]Regular price[/L] [item-price] [L]Your price[/L]: [item-discount-price] [L]You save[/L]: [item-difference] | [item-subtotal] [item-discount-subtotal] [L]You save[/L]: [item-discount] [else] | [item-discount-price] | [item-discount-subtotal] [/else] [/if]
[/item-list]
[L]Shipping Weight[/L]: | [summary format="%s" total=1]
[L]Subtotal[/L]: | [subtotal]
[button text="[L]Checkout now[/L]" class="btn btn-primary btn-lg" form=basket ] mv_todo=return mv_nextpage=__CHECKOUT_PAGE__ [/button]
[/then] [else]
[L]No items at the moment.[/L]
[/else] [/if]

@_BOTTOM_@