Discount on choice of payment method

22.08.2022 16:43
#1
hhecker
Joomshopping forum user no avatar
Name: Hubert
10.04.2022
Posts: 15
Quote
Discount on choice of payment method

In my webshop a customer can choose to pay online via Ideal. By choosing this option, they will get a discount of 10%.

In the configuration of the Mollie addon I have set Price = -10%
In the configuration of Joomshopping I have set prices in admin and front end at netto.

Thus I would like to see e.g.

Netto total = 1000,00 EURO
Discount Ideal 10% = -100,00 EURO (=0,10 x Netto total)
TAX (21%) = 189,00 EURO (= 0,21 x 900)
---------------------------------------------------------------------------------------- +
Bruto total = 1.089,00 EURO


But in my webshop the calculation is as follows:

Netto total = 1000,00 EURO
Discount Ideal 10% = -121,00 EURO (= 0,10 x (Netto total + TAX))
TAX (21%) = 184,59 EURO
---------------------------------------------------------------------------------------- +
Bruto total = 1.063,59 EURO

Thus the problem is, that the 10% Ideal discount is calculated from the Bruto total and then subtracted from the Netto total.
What am I doing wrong?

 
23.08.2022 22:29
#2
hhecker
Joomshopping forum user no avatar
Name: Hubert
10.04.2022
Posts: 15
Quote
Aw: Discount on choice of payment method

Okay, the solution i found is as follows:

In configuration i have set: display prices in admin area as bruto; display prices in front end as netto.

 
24.08.2022 12:09
#3
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25919
Quote
Aw: Discount on choice of payment method

or chenge code (Joomshopping 5.x)
components\com_jshopping\Model\CartModel.php

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

change to


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

 


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.