Hi everyone,
I had modified my flat.php shipping rules in includes/modules/shipping/ to offer a flat rate if the checkout was less than $250.
I put in this handy code that said:
Which worked perfect.Code:if (($_SESSION['cart']->show_total()) < 250) { $this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false); }
But after transferring servers I now get the error:
Can anyone tell me what I have to add to allow the $_SESSION['cart']->show_total() to work on the flat.php page?Fatal error: Call to a member function show_total() on a non-object in flat.php on line 41
Thanks so much in advance.
Adam.




