only check if items are not self picup so far
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
tobiasd 2024-10-08 12:23:09 +02:00
parent cc802a4085
commit 786c34b726
Signed by: tobiasd
GPG Key ID: 25FE376FF17694A1

View File

@ -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;
}