Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions modules/marm/difftofreeshipping/models/marm_diff_oxbasket.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ class marm_diff_oxbasket extends marm_diff_oxbasket_parent
public function getPriceUntilFreeShipping()
{
if ( $this->_oProductsPriceList ) {
if ( !$this->isCalculationModeNetto() ){
$productsPrice = $this->_oProductsPriceList->getBruttoSum();
} else {
$productsPrice = $this->_oProductsPriceList->getNettoSum();
}
$oDB = oxDb::getDb();
$sQ = 'select OXPARAM from oxdelivery where OXADDSUM = 0';
$freeShippingPrice = oxDb::getDb()->GetOne($sQ);
Expand Down
10 changes: 8 additions & 2 deletions modules/marm/difftofreeshipping/views/blocks/diffToFree.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
[{$smarty.block.parent}]
[{if $oxcmp_basket->getPriceUntilFreeShipping() > 0 }]
<p class="totals">
Nur noch <strong>[{$oxcmp_basket->getPriceUntilFreeShipping()}]
[{ $currency->sign}]</strong>
und wir schicken Ihnen Ihre Bestellung kostenlos.
</p>
und wir liefern Ihnen Ihre Bestellung kostenlos.
</p>
[{else}]
<p class="totals">
Versandkostenfreie Lieferung!
</p>
[{/if}]