Tax::display()

Open to all! Ask other shopowners for help.
Post Reply
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Tax::display()

Post by heatherbell »

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


Join The Code Co-op to get access to your library in the Code Co-op Forum
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()

Post by heatherbell »

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'?
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()

Post by heatherbell »

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?
Screenshot 2024-05-07 073431.png
You do not have the required permissions to view the files attached to this post.
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()

Post by ecartz »

Pears aren't taxable.

For the error, TY: https://github.com/CE-PhoenixCart/Phoen ... fd2a13dee7
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()

Post by heatherbell »

ecartz wrote: Tue May 07, 2024 9:47 am Pears aren't taxable.
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?
Screenshot 2024-05-07 113119.png
You do not have the required permissions to view the files attached to this post.
User avatar
burt
Core Team
Posts: 4560
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 413 times

Re: Tax::display()

Post by burt »

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)
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4560
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 413 times

Re: Tax::display()

Post by burt »

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?
Should show if multiple tax groups.
I am not here to build for you.
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()

Post by ecartz »

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.
User avatar
burt
Core Team
Posts: 4560
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 413 times

Re: Tax::display()

Post by burt »

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
I am not here to build for you.
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()

Post by heatherbell »

ecartz wrote: Tue May 07, 2024 10:56 am 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.
No complaint, just an observation and reportage but explanation now makes it clear that it is expected behaviour.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply