|
@@ 602-607 (lines=6) @@
|
| 599 |
|
|
| 600 |
|
$items[$i]['currency']['DKK']['price'] = $detail->getPrice($product)->getAsIso(); |
| 601 |
|
$items[$i]['currency']['DKK']['price_incl_vat'] = $detail->getPriceIncludingVat($product)->getAsIso(4); |
| 602 |
|
if (is_object($currencies) && $currencies->count() > 0) { |
| 603 |
|
foreach ($currencies as $currency) { |
| 604 |
|
$items[$i]['currency'][$currency->getType()->getIsoCode()]['price'] = $detail->getPriceInCurrency($currency, 0, $product)->getAsIso(); |
| 605 |
|
$items[$i]['currency'][$currency->getType()->getIsoCode()]['price_incl_vat'] = $detail->getPriceIncludingVatInCurrency($currency, 0, $product)->getAsIso(4); |
| 606 |
|
} |
| 607 |
|
} |
| 608 |
|
} else { |
| 609 |
|
$items[$i]['product_variation_id'] = 0; |
| 610 |
|
$items[$i]['name'] = $product->get('name'); |
|
@@ 617-622 (lines=6) @@
|
| 614 |
|
|
| 615 |
|
$items[$i]['currency']['DKK']['price'] = $product->getDetails()->getPrice()->getAsIso(2); |
| 616 |
|
$items[$i]['currency']['DKK']['price_incl_vat'] = $product->getDetails()->getPriceIncludingVat()->getAsIso(2); |
| 617 |
|
if (is_object($currencies) && $currencies->count() > 0) { |
| 618 |
|
foreach ($currencies as $currency) { |
| 619 |
|
$items[$i]['currency'][$currency->getType()->getIsoCode()]['price'] = $product->getDetails()->getPriceInCurrency($currency)->getAsIso(2); |
| 620 |
|
$items[$i]['currency'][$currency->getType()->getIsoCode()]['price_incl_vat'] = $product->getDetails()->getPriceIncludingVatInCurrency($currency)->getAsIso(2); |
| 621 |
|
} |
| 622 |
|
} |
| 623 |
|
} |
| 624 |
|
|
| 625 |
|
// basket specific |