Bad shipping price afrer use of coupon

22.09.2015 13:50
#1
sabaka
Joomshopping forum user no avatar
Name: sabaka
09.10.2011
Posts: 98
Quote
Bad shipping price afrer use of coupon

Hello, we have a problem when item costs as example 50 Eur and we have coupon for it 30%,and free shipping over 45 Eur. With coupon order is less then 45 eur but system still applies 0 shipping price.

What settings i can check?


Joomla: 3.4.3
JoomShopping: 4.7.1.

Letzte Änderung: 22.09.2015 13:51
 
22.09.2015 15:19
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25857
Quote
Aw: Bad shipping price afrer use of coupon

url?
test data?
screenshots?

 
23.09.2015 08:16
#3
sabaka
Joomshopping forum user no avatar
Name: sabaka
09.10.2011
Posts: 98
Quote
Aw: Bad shipping price afrer use of coupon

Hi,
I put everything in file, hope it helps.
BR.
shippingproblem.pdf

 
23.09.2015 20:04
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25857
Quote
Aw: Bad shipping price afrer use of coupon

Joomshopping logic.
Free shipping calculate from subtotal price (Sum products)

components\com_jshopping\tables\shippingmethodprice.php

function getGlobalConfigPriceNull($cart){
$jshopConfig = JSFactory::getConfig();
return ($cart->getSum() >= ($jshopConfig->summ_null_shipping * $jshopConfig->currency_value) && $jshopConfig->summ_null_shipping > 0);
}

change to

function getGlobalConfigPriceNull($cart){
$jshopConfig = JSFactory::getConfig();
return ($cart->getSum(0, 1) >= ($jshopConfig->summ_null_shipping * $jshopConfig->currency_value) && $jshopConfig->summ_null_shipping > 0);
}


Letzte Änderung: 23.09.2015 20:10
 
24.09.2015 07:50
#5
sabaka
Joomshopping forum user no avatar
Name: sabaka
09.10.2011
Posts: 98
Quote
Aw: Bad shipping price afrer use of coupon

Hi, as i see you change only this part:

from $cart->getSum() to $cart->getSum(0, 1) it doesn't work for me :(

I also updated to 4.10.5 and tried again - nothing :(


Joomla: 3.4.4.
JoomShopping: 4.10.5.

Letzte Änderung: 24.09.2015 09:06
 
25.09.2015 08:41
#6
sabaka
Joomshopping forum user no avatar
Name: sabaka
09.10.2011
Posts: 98
Quote
Aw: Bad shipping price afrer use of coupon

Please check this, as we are loosing money on shipping this way :(

 
25.09.2015 13:26
#7
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25857
Quote
Aw: Bad shipping price afrer use of coupon

components\com_jshopping\shippings\sm_depend_zip_weight_usergroup\sm_depend_zip_weight_usergroup.php

row 62

$price_sum = $cart->getSum();

change to

$price_sum = $cart->getSum(0, 1);

 
25.09.2015 13:43
#8
sabaka
Joomshopping forum user no avatar
Name: sabaka
09.10.2011
Posts: 98
Quote
Aw: Bad shipping price afrer use of coupon

Nice, working!

Thank you

 
19.04.2016 11:32
#9
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25857
Quote
Aw: Bad shipping price afrer use of coupon

Default in joomshopping 4.11+

components\com_jshopping\lib\default_config.php

$config->free_shipping_calc_from_total_and_discount = 0;

 


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.