Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hi need help with code snippet!


Guest

Recommended Posts

Hi m8s, :thumbsup:

 

I'm editing my product list page and I'd like a visual reference

of the number of products in the shopping cart.

 

e.g

 

Quantity in Basket: 5 items <-- is the code I'd like to spit out.

 

I've looked in all the shopping cart php files I'm probably over looking it. :blink:

 

Any help would Rock..

 

Azati

B)

Link to comment
Share on other sites

<?php echo ENTRY_NOW_INCART; ?> <b><FONT color=#999943><?php echo $cart->count_contents(); ?>?<?php echo ENTRY_HCART_ITEMS; ?>

 

 

adding your entry languages for good translates...

Link to comment
Share on other sites

Cool,

 

Thank you both for your time and knowledge! :thumbsup: :thumbsup: :thumbsup:

 

Hope this helps someone else in the future..

 

Peace,

Azati B)

Link to comment
Share on other sites

Hey brilliant!

 

This was just what I was looking for.

 

Although... is it possible to create this "0 Items" into a hyperlink to the shopping cart page?

 

Is it as simple as putting a <a href="#"></a> around the code or will this muck up the whole PHP?

 

Tim

(Newbie)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...