GX-Bug #44914 » refs__44914__Rabatt_Kupon_wird_nicht_berechnet__wenn_Artikel_0_EUR_hat_aber_Eigenschaftsko.patch
| src/includes/modules/order_total/ot_coupon.php (revision ) | ||
|---|---|---|
| 947 | 947 |
global $order, $xtPrice; |
| 948 | 948 |
|
| 949 | 949 |
$qty = $_SESSION['cart']->contents[$product_id]['qty']; |
| 950 |
$basket_products_id = $product_id; |
|
| 950 | 951 |
$products_id = xtc_get_prid($product_id); |
| 951 | 952 |
|
| 952 | 953 |
// products price |
| ... | ... | |
| 964 | 965 |
|
| 965 | 966 |
if($this->include_tax == 'true') |
| 966 | 967 |
{
|
| 967 |
$total_price += $qty * $xtPrice->xtcGetPrice($product['products_id'], $format = false, 1, $product['products_tax_class_id'], $product['products_price'], 1);
|
|
| 968 |
$total_price += $qty * $xtPrice->xtcGetPrice($basket_products_id, $format = false, 1, $product['products_tax_class_id'], $product['products_price'], 1,0,true,true);
|
|
| 968 | 969 |
$_SESSION['total_price'] = $total_price; |
| 969 | 970 |
} |
| 970 | 971 |
else |
| 971 | 972 |
{
|
| 972 |
$total_price += $qty * $xtPrice->xtcGetPrice($product['products_id'], $format = false, 1, 0, $product['products_price'], 1);
|
|
| 973 |
$total_price += $qty * $xtPrice->xtcGetPrice($basket_products_id, $format = false, 1, 0, $product['products_price'], 1,0,true,true);
|
|
| 973 | 974 |
} |
| 974 | 975 |
|
| 975 | 976 |
$products_tax = $xtPrice->TAX[$product['products_tax_class_id']]; |