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
Posts: 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
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16507
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
Posts: 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
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16507
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
Posts: 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. All Rights Reserved