Implement PayPal Fee correctly: fix value + variable value

14.12.2012 08:53
#1
Airlike
Joomshopping forum user no avatar
Name: Patrick
02.07.2012
Сообщения: 3
Quote
Implement PayPal Fee correctly: fix value + variable value

Hi

I'm using Joomshopping in my Joomla 2.5 site - it works great! Thanks for this cool extension!

There's only one thing I have some trouble with it:

PayPal charges, at least in Switzerland, for a transaction CHF 0.55 (fix) + 3.4 % of the total amount ordered. Could I add this somewhere in the pm_paypal.php file, if yes knows somebody how to do that exactly?

thanks

 
14.12.2012 09:09
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25919
Quote
Aw: Implement PayPal Fee correctly: fix value + variable value

Not possible
% or fix price

 
14.12.2012 17:03
#3
Airlike
Joomshopping forum user no avatar
Name: Patrick
02.07.2012
Сообщения: 3
Quote
Aw: Implement PayPal Fee correctly: fix value + variable value

why should that not be possible? There must be somewhere code where I could add this.

 
14.12.2012 20:35
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25919
Quote
Aw: Implement PayPal Fee correctly: fix value + variable value

components\com_jshopping\tables\paymentmethod.php
function getPrice(){
...
}

 
15.12.2012 10:05
#5
Airlike
Joomshopping forum user no avatar
Name: Patrick
02.07.2012
Сообщения: 3
Quote
Aw: Implement PayPal Fee correctly: fix value + variable value

thank you! works great, I did it like this:

function getPrice(){
$jshopConfig = &JSFactory::getConfig();
if ($this->price_type==2){
$cart = &$this->getCart();
$price = ($cart->getSummForCalculePlusPayment() * $this->price / 100) + 0.55;
if ($jshopConfig->display_price_front_current){
$price = $price / (1 + $this->getTax() / 100);
}

 


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.