Jump to content

Classes Product.php undefined variable problem


Recommended Posts

Hi am getting following error in server error logs:
Undefined variable: $tax in /var/www/vhosts/xxxxxxxxx.co.uk/httpdocs/classes/Product.php on line 1247.

Line 2247 is :
$attribute_price = $usetax ? $result[‘attribute_price’] : ($result[‘attribute_price’] / (1 + (($tax ? $tax : $result[‘rate’]) / 100)));

Any ideas why this is – have moved tax code to the bottom as in example above? Have attached Product.php class

Thanks
Baz

Product.php

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...