Page 2 of 2

Re: shipping conditions amount rule does not work

Posted: 13 May 2024, 20:46
by Nidzo
Yes I tried but it does not help. I found out that error ocurs when the total amount is less than or equal to the threshold price minus the shipping cost... huh I think. :) For example:
Shipping price is 69 SEK and limit is 699 SEK.
If total order sum is between 630 SEK and 699 SEK (699-69=630) it will display error. If it is 629 SEK or less and 700 and higher order will be accepted. :)

So it calculate shipping price. I tried to set shipping price to 70 SEK and difference then is 70 so it will accept total sum of 628 SEK and less.

Image
Image

Re: shipping conditions amount rule does not work

Posted: 14 May 2024, 11:54
by Nidzo
To exclude current project I installed latest Joomla 5.1.0 and latest Phoca 5.0.0Beta51 with example data on my localhost and result is the same.

Image

Re: shipping conditions amount rule does not work

Posted: 14 May 2024, 15:13
by mino182
I think, there could be swapped variables subtotal / total somewhere...

Re: shipping conditions amount rule does not work

Posted: 14 May 2024, 18:16
by Nidzo
I don't know. It has something to amount rule treshold and shipping price.

What ever amount you set as shipping price it will create exact gap between amount rule treshold reduced by the amount of the shipping price when the error shows.

You cannot make order so it is serious bug. 😳

Re: shipping conditions amount rule does not work

Posted: 17 May 2024, 06:50
by Nidzo
I found temporary fix.
In /administrator/components/com_phocacart/libraries/phocacart/order/order.php on line 461 I set

Code: Select all

$shippingNotFoundAllowProceed = false;
to

Code: Select all

$shippingNotFoundAllowProceed = true;

Re: shipping conditions amount rule does not work

Posted: 18 May 2024, 01:07
by Jan
Hi, not sure if I understand it correctly, but shipping price cannot be included in amount rule. As when we decide about showing shippings, we don't know which shipping we display so we don't the the price for shipping. This is why the rule is applied to subtotal without shipping.

Jan

Re: shipping conditions amount rule does not work

Posted: 18 May 2024, 01:46
by Nidzo
Create two shipping methods based on amount rule.
Payed shipping for amount up to 100€ and free shipping for orders over 100€.

Shipping for orders up to 100€ costs 20€

Try to create order that costs 88€ (excluding shipping costs)

You won't be able to confirm order.

Video might help to understand:
https://www.youtube.com/watch?v=rrcQfsglrlQ

Re: shipping conditions amount rule does not work

Posted: 21 May 2024, 00:30
by Jan
Hi, thank you for the info, please test Beta 55 and let me know if this is OK now:

https://github.com/PhocaCz/PhocaCart/re ... Beta55.zip

Jan

Re: shipping conditions amount rule does not work

Posted: 21 May 2024, 16:11
by Nidzo
Thank you Jan! I tested latest Beta and it works fine now. 🍻

Re: shipping conditions amount rule does not work

Posted: 28 May 2024, 01:21
by Jan
OK