Guest Posted June 21, 2007 Posted June 21, 2007 I have tested the shopping cart and then this error shows: Fatal error: Call to a member function on a non-object in /home/account/public_html/folder/includes/header.php on line 61. The code that is on line 61 is: echo '<br>Total: ' . $osC_Currencies->format($cart->show_total()); The code that surrounds the code that above is: <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo "<b>Shopping Cart</a>:</b><br />"; echo $cart->count_contents() . ' Items'; if ($cart->count_contents() > 0) { echo '<br>Total: ' . $osC_Currencies->format($cart->show_total()); } ?> <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"> <?php echo HEADER_TITLE_CHECKOUT; ?></a> Can someone please have a look at the code and tell me why that error is appearing? Thanks in advance.
stavin Posted July 30, 2007 Posted July 30, 2007 I am having a similar issue. I am trying to implement the new enhanced whos_inline mod, and I get the same error you're getting near line 797 of the code... // Show shopping cart contents for selected entry echo '<td valign="top">' . "\n"; $box = new box; echo $box->infoBox($heading, $contents); echo tep_draw_separator('pixel_black.gif', '100%', '1'); echo '<div class="smalltext"><b>' . TEXT_SHOPPING_CART_SUBTOTAL . ' ' . $currencies->format($cart->show_total(), true, $currency) . '</b></div>'; echo '</td>' . "\n"; ?> </tr> </table></td> </tr> </table></td> <!-- body_text_eof //--> So far everything I've read leads me to conclude I am missing an include somewhere.. but I have no idea which. If you find an answer to this problem, could you let me know? Thanks, Stavin G I have tested the shopping cart and then this error shows:Fatal error: Call to a member function on a non-object in /home/account/public_html/folder/includes/header.php on line 61. The code that is on line 61 is: echo '<br>Total: ' . $osC_Currencies->format($cart->show_total()); The code that surrounds the code that above is: <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo "<b>Shopping Cart</a>:</b><br />"; echo $cart->count_contents() . ' Items'; if ($cart->count_contents() > 0) { echo '<br>Total: ' . $osC_Currencies->format($cart->show_total()); } ?> <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"> <?php echo HEADER_TITLE_CHECKOUT; ?></a> Can someone please have a look at the code and tell me why that error is appearing? Thanks in advance.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.