This occasionally appearing in error log as a result of a customer action but unable to replicate. 1.0.9.0 and PHP8
Call to undefined method Tax::display() in templates/default/includes/pages
/account_history_info.php:56
Tax::display()
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: Tax::display()
PHP Fatal error: Uncaught Error: Call to undefined method Tax::display()
This is still appearing from time to time. Is this just a 'me problem'?
This is still appearing from time to time. Is this just a 'me problem'?
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: Tax::display()
Maybe mis-reading the code but these lines:
https://github.com/CE-PhoenixCart/Phoen ... hp#L35-L40
and these lines:
https://github.com/CE-PhoenixCart/Phoen ... hp#L55-L57
seem to imply that the Tax should display in the table?
But I see this in a clean demo, is this expected?
https://github.com/CE-PhoenixCart/Phoen ... hp#L35-L40
and these lines:
https://github.com/CE-PhoenixCart/Phoen ... hp#L55-L57
seem to imply that the Tax should display in the table?
But I see this in a clean demo, is this expected?
You do not have the required permissions to view the files attached to this post.
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: Tax::display()
Made so to demo.
In any case,
Maybe mis-reading the code but these lines:
https://github.com/CE-PhoenixCart/Phoen ... hp#L35-L40
and these lines:
https://github.com/CE-PhoenixCart/Phoen ... hp#L55-L57
seem to imply that the Tax should display in the table?
But I see this in a clean demo (now with Red Apples), is this expected?
You do not have the required permissions to view the files attached to this post.
- burt
- Core Team
- Posts: 4560
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 413 times
Re: Tax::display()
Looks OK, assuming customer is in Florida..?
You have 7% Florida Tax on Apples and no tax on shipping;
Thus:
Sub Total 4.99 (tax exc)
Post 5 (no tax)
FL Tax 0.35 (tax on 4.99)
Total 10.34 (tax inc)
You have 7% Florida Tax on Apples and no tax on shipping;
Thus:
Sub Total 4.99 (tax exc)
Post 5 (no tax)
FL Tax 0.35 (tax on 4.99)
Total 10.34 (tax inc)
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
- burt
- Core Team
- Posts: 4560
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 413 times
Re: Tax::display()
Should show if multiple tax groups.heatherbell wrote: ↑Tue May 07, 2024 10:34 am Maybe mis-reading the code but these lines:
https://github.com/CE-PhoenixCart/Phoen ... hp#L35-L40
and these lines:
https://github.com/CE-PhoenixCart/Phoen ... hp#L55-L57
seem to imply that the Tax should display in the table?
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
ecartz
- Core Team
- Posts: 3084
- Joined: Tue Nov 05, 2019 6:02 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 208 times
Re: Tax::display()
The complaint is that the tax should show in the product table but isn't.
The current behavior dates back to osCommerce. It only shows tax when there is more than one tax group.
The current behavior dates back to osCommerce. It only shows tax when there is more than one tax group.
- burt
- Core Team
- Posts: 4560
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 413 times
Re: Tax::display()
Ohhh.
You could try removing the if clause and see what happens?
Would need to be tested on both taxable good and non-taxable etc
You could try removing the if clause and see what happens?
Would need to be tested on both taxable good and non-taxable etc
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: Tax::display()
No complaint, just an observation and reportage but explanation now makes it clear that it is expected behaviour.