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