Voucher and Payment sconto Problem

11.02.2021 16:04
#1
kreativ quadrat
User kreativ quadrat
Name: garry
25.11.2010
Posts: 325
Quote
Voucher and Payment sconto Problem

we have the following problem
example:
our Brutto price with tax is: € 143,50
we have a Voucher -€ 5,00
and Sconto (Paymant -2%)

jshopping now calculates like this:
€ 143,50 -2% Sconto - € 5 Voucher
that's wrong. correct would be
€ 143,50 - € 5 Voucher -2% Sconto

where can i change this in the shop?
thx
bildschirmfoto_2021-02-11_um_16.00.52.png

 
11.02.2021 19:31
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25940
Quote
Aw: Voucher and Payment sconto Problem

Change code:
components\com_jshopping\models\cart.php

function getSummForCalculePlusPayment(){
$jshopConfig = JSFactory::getConfig();
$sum = $this->getPriceBruttoProducts();
if ($this->display_item_shipping){
$sum += $this->getShippingBruttoPrice();
$sum += $this->getPackageBruttoPrice();
}
return $sum;
}

to

function getSummForCalculePlusPayment(){
$jshopConfig = JSFactory::getConfig();
$sum = $this->getPriceBruttoProducts();
if ($this->display_item_shipping){
$sum += $this->getShippingBruttoPrice();
$sum += $this->getPackageBruttoPrice();
}
$sum -= $this->getDiscountShow();
return $sum;
}

 
11.02.2021 22:17
#3
kreativ quadrat
User kreativ quadrat
Name: garry
25.11.2010
Posts: 325
Quote
Aw: Voucher and Payment sconto Problem

thx
now everything works correctly

this fix should generally be included in your next update,
as the payment discount should always be deducted at the end

 
12.02.2021 07:20
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25940
Quote
Aw: Voucher and Payment sconto Problem

Yes.

New in default_config.php
$config->use_summ_for_calcule_payment_with_discount = 0;

[1 - enable, 0 - disabled]


Last change: 12.02.2021 07:22
 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.