Coupons and shipping price

Phoca Cart - complex e-commerce extension
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

Coupons and shipping price

Post by Nidzo »

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?

Image
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Coupons and shipping price

Post by Jan »

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. :idea:
If you find Phoca extensions useful, please support the project
mino182
Phoca Professional
Phoca Professional
Posts: 189
Joined: 12 Feb 2015, 13:30

Re: Coupons and shipping price

Post by mino182 »

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...
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

Re: Coupons and shipping price

Post by Nidzo »

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...
What do you suggest in this case?
mino182
Phoca Professional
Phoca Professional
Posts: 189
Joined: 12 Feb 2015, 13:30

Re: Coupons and shipping price

Post by mino182 »

Nidzo wrote: 29 May 2024, 22:21
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...
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

Re: Coupons and shipping price

Post by Nidzo »

mino182 wrote: 30 May 2024, 15:42
Jan wrote: 29 May 2024, 16:29
I created discount with fixed ammount of 500 SEK and Total Amount Rule of 700 SEK. It will not include Shipping price.

If I were a seller it is not logic to give someone discount of 500 SEK (around 50€) and give him free shipping that costs me as seller 10 or more euros.

Image
Image
mino182
Phoca Professional
Phoca Professional
Posts: 189
Joined: 12 Feb 2015, 13:30

Re: Coupons and shipping price

Post by mino182 »

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...
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

Re: Coupons and shipping price

Post by Nidzo »

I tried this scenario on my test Woocommerce project and it calculates coupons and discounts based on total ammount after applying discount code.

Image

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.

Image

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)
mino182
Phoca Professional
Phoca Professional
Posts: 189
Joined: 12 Feb 2015, 13:30

Re: Coupons and shipping price

Post by mino182 »

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...
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

Re: Coupons and shipping price

Post by Nidzo »

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
Image

Woocommerce
Image

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
Post Reply