only check if items are not self picup so far
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cc802a4085
commit
786c34b726
@ -108,7 +108,9 @@ foreach my $item ( $query->param ) {
|
||||
my $price = $items->findvalue("/itemset/item[\@id=\"$item\"]/\@price");
|
||||
$count += 1;
|
||||
$amount += $value * $price;
|
||||
$pickup = "hoodie-fourfreedoms" eq substr($origitem,0,length("hoodie-fourfreedoms"));
|
||||
if ( !$pickup ) {
|
||||
$pickup = "hoodie-fourfreedoms" eq substr($origitem,0,length("hoodie-fourfreedoms"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -120,6 +122,7 @@ if ( $country_code eq 'DE' ) {
|
||||
} else {
|
||||
$shipping = 8;
|
||||
}
|
||||
# if one item was for pick up only, then shipping cost are 0
|
||||
if ( $pickup ) {
|
||||
$shipping = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user