Free Shipping Info Plugin: maybe wrong calculation

Phoca Cart - complex e-commerce extension
fab966
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 26 Oct 2015, 15:51

Free Shipping Info Plugin: maybe wrong calculation

Post by fab966 »

I think there is a small problem with this Plugin.
On my shop I have some different TAX rate (7%, 10% and 22%).

I have set 50.00 in Plugin Parameter as Free Shipping Amount.

If I have this in my Checkout:
  • Subtotal : 25.00 €
  • Tax (10%) : 2.50 €
  • Shipping Price : 10 €
  • Total : 37.50 €
The Plugin show now "You are only € 12.50 from free shipping", but it should be NOT Shipping Price included.
I have also many Shipping Zones and the plugin should consider only the Amount of Product Price in Checkout (Netto + Tax), without Shipping Price.

On other situation I had a mismatch between Free Shipping Method and Free Shipping Info Plugin:
in Checkout the Free Shipping Method is correctly configured (Amount rule active, from 0.00 to 50.00) and the Checkout works good because it calculates the Netto + Tax without Shipping Price, but not the Info Free Shipping Plugin because it calculates Netto + Tax + Shipping price.

Is this a shop configuration mismatch or something wrong in this (nice) plugin?

Thanks in advance

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

Re: Free Shipping Info Plugin: maybe wrong calculation

Post by Jan »

Hi, can you paste a screenshot where this happens. Because normally if you paste some item to cart, shipping method is removed (as the rules changed). So the behaviour is, example:

I select some shipping method:

Image

(+ 20 EUR)

But when I add the product to the cart (shipping method is automatically removed, because rules for shipping method changed)

Image

(41,12 Total minus 20 Shipping + 10 newly added product = 31,12)

50 - 31,12 = 18,88

Anyway which version of the plugin and component do you use?
If you find Phoca extensions useful, please support the project
fab966
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 26 Oct 2015, 15:51

Re: Free Shipping Info Plugin: maybe wrong calculation

Post by fab966 »

Hi Jan,
I can't upload images, but you can find here two links to the JPGs:

Just before the Plugin threshold:
https://www.digitest.net/z_buttare/free-shipping-01.jpg

And then just after the threshold:
https://www.digitest.net/z_buttare/free-shipping-02.jpg

I have there PhCart ver. 3.3.2 and Free Shipping Plugin ver. 3.4.0

Thanks in advance.
Fabrizio
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Free Shipping Info Plugin: maybe wrong calculation

Post by Jan »

Hi,now I see, yes, displaying the plugin below the checkout can display wrong information, try to update to this version:

https://github.com/PhocaCz/PhocaCartFre ... v3.4.1.zip

and let me know.

Anyway the plugin has no dependency on the shipping calculation. It is fully managed by rules, you when you display this plugin, you should also set the shipping rules properly so the shipping option will be correctly set.

The amount which will be used in the plugin is netto + tax (no shipping, no payment)

Image
(you can set the shipping method)

Image
(shipping method is automatically set to free shipping)

Image

Jan
If you find Phoca extensions useful, please support the project
fab966
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 26 Oct 2015, 15:51

Re: Free Shipping Info Plugin: maybe wrong calculation

Post by fab966 »

Hi Jan,
thank you for your answer and your fix in the Plugin.
I have seen the changes by $amountToCalculate.
I think, now everything is right with this nice Plugin.

I've it tested and it looks great!

Many thanks Jan!

I don't know how can I mark this post as Solved.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Free Shipping Info Plugin: maybe wrong calculation

Post by Jan »

Great, thank you for the info.

Jan
If you find Phoca extensions useful, please support the project
Post Reply