Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Display Subtotal and # of items in a div


dynopix

Recommended Posts

Posted

I am creating a template for a store, and I want to display the Cart information at the top of the site as well as in the right column, but at the top I just want it to display # of items and the sub-total.

 

How would I go about doing this in my template? I am using STS

Posted

OK I figured out how to display the information I need. I use this code.

                           <?php echo $currencies->format($cart->show_total()); ?>

 

Only problem is when I put that in my sts_template.html file It show a fatal error message.

Fatal error: Call to a member function format() on a non-object in /home/usr/public_html/store/includes/sts_templates/mytemplate/sts_template.html on line 43

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...