This is the scenario:
Somebody bought you a Gift Card and you get Gift Code.
You go to shop and put products in cart that total is above Free shipping treshold so Free shipping is applied. But when you apply Gift Card Coupon Code your Total ammount is now bellow Free shipping treshold.
In any other scenario shipping price is included but in this case Free shipping remains. So Phoca Cart in this case takes into account the subtotal amount, not the total amount and calculates the shipping price.
Is this good logic or is it a bug?
Coupons and shipping price
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Coupons and shipping price
Hi, for deciding about shipping, you need to take the subtotal amount into account, because in total amount the price of shipping is included. So this is decided before there is an offer of shipping methods and at this time you don't know the amount of the total. This is why total is not used but subtotal. It is hard to say if this is good logic or not, but there is no other way. You cannot decide about offered shpping methods from total amount which does not exist at the time of the shipping methods offer.
If you find Phoca extensions useful, please support the project
-
- Phoca Professional
- Posts: 189
- Joined: 12 Feb 2015, 13:30
Re: Coupons and shipping price
I think, there should be "subtotal" which will count final price for products (after all discounts), but without services cost/discounts (shipping, payments). And this "subtotal" should be used to filter shipping and payments... But gift card is like real money, not like discount coupon and it should not be subtracted...
- Nidzo
- Phoca Professional
- Posts: 387
- Joined: 07 Nov 2018, 14:55
Re: Coupons and shipping price
What do you suggest in this case?mino182 wrote: ↑29 May 2024, 17:01 I think, there should be "subtotal" which will count final price for products (after all discounts), but without services cost/discounts (shipping, payments). And this "subtotal" should be used to filter shipping and payments... But gift card is like real money, not like discount coupon and it should not be subtracted...
-
- Phoca Professional
- Posts: 189
- Joined: 12 Feb 2015, 13:30
Re: Coupons and shipping price
I don't know how it work with other discounts (I'm affraid they are not subtract from subtotal, same as gift card), but in your case with gift card, it is ok I think... Because user spend whole amount in your shop. Gift card somebody buy for real money, it is different case from discount coupon... So that plugin which show remaining amount for free shipping should be harmonized with shipping filter...
- Nidzo
- Phoca Professional
- Posts: 387
- Joined: 07 Nov 2018, 14:55
Re: Coupons and shipping price
-
- Phoca Professional
- Posts: 189
- Joined: 12 Feb 2015, 13:30
Re: Coupons and shipping price
I agree, free shipping based on price, should be based on spended amount. So there should be extra variable for "prefinal" price - without shipping and payment costs, but with discounts counted. But it's little tricky with gift coupons, because they are counted like other discounts, despite they are another payment type (if you sell them for real money). And payment price rule should be based on "total total" - with shipping...
- Nidzo
- Phoca Professional
- Posts: 387
- Joined: 07 Nov 2018, 14:55
Re: Coupons and shipping price
I tried this scenario on my test Woocommerce project and it calculates coupons and discounts based on total ammount after applying discount code.
After all, why is there an option in the coupon / discount settings to offer free shipping if it will be included in the calculation based on the subtotal amount without your knowledge.
In my opinion, there should be implemented coupon amount calculation in shipping and it should be charged if there is an amount rule set, if not set otherwise. (picture 2)
After all, why is there an option in the coupon / discount settings to offer free shipping if it will be included in the calculation based on the subtotal amount without your knowledge.
In my opinion, there should be implemented coupon amount calculation in shipping and it should be charged if there is an amount rule set, if not set otherwise. (picture 2)
-
- Phoca Professional
- Posts: 189
- Joined: 12 Feb 2015, 13:30
Re: Coupons and shipping price
Your first img is same like Phocacart: subtotal - discount + shipping = total...
Second thing, they are there for creating free shipping coupon. Like, FREE SHIPPING FRIDAY!!! USE THIS COUPON AND GET YOUR STUFF WITH $O SHIPPING FEE.
There is only two problems actually -
1. free shipping info plugin count with "total" and shipping price rule count with "subtotal"
2. there is only two possibilities how to get amount for free shipping (info plugin and rule): "subtotal" without discounts and shipping price or "total" with discounts and shipping price (because user can continue buying even after shipping is choosen).
There is needed another subtotal variable with discounts...
Second thing, they are there for creating free shipping coupon. Like, FREE SHIPPING FRIDAY!!! USE THIS COUPON AND GET YOUR STUFF WITH $O SHIPPING FEE.
There is only two problems actually -
1. free shipping info plugin count with "total" and shipping price rule count with "subtotal"
2. there is only two possibilities how to get amount for free shipping (info plugin and rule): "subtotal" without discounts and shipping price or "total" with discounts and shipping price (because user can continue buying even after shipping is choosen).
There is needed another subtotal variable with discounts...
- Nidzo
- Phoca Professional
- Posts: 387
- Joined: 07 Nov 2018, 14:55
Re: Coupons and shipping price
Let's forget free shipping plugin. Final calculation is not O.K. Phoca Cart does not follow the amount rule and does not calculate the shipping cost correctly.
Phoca Cart
Woocommerce
Even OpenCart has/had similar problem
https://forum.opencart.com/viewtopic.ph ... 5&p=194307
and resolutions
https://www.opencart.com/index.php?rout ... ber=sdsoft
https://www.opencart.com/index.php?rout ... n_id=20027
Phoca Cart
Woocommerce
Even OpenCart has/had similar problem
https://forum.opencart.com/viewtopic.ph ... 5&p=194307
and resolutions
https://www.opencart.com/index.php?rout ... ber=sdsoft
https://www.opencart.com/index.php?rout ... n_id=20027