Zen Follower
- Join Date:
- May 2006
- Posts:
- 313
- Plugin Contributions:
- 0
Flat rate shipping change
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:
if (($_SESSION['cart']->show_total()) < 250) {
$this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false);
}
Which worked perfect.
But after transferring servers I now get the error:
Fatal error: Call to a member function show_total() on a non-object in flat.php on line 41
Can anyone tell me what I have to add to allow the $_SESSION['cart']->show_total() to work on the flat.php page?
Thanks so much in advance.
Adam.
- pensive612