Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Item Count in shopping car instead of Product name


shade

Recommended Posts

anyone?

 

Usually an answer is provided when someone

 

a - knows the best solutiojns

b - has an idea on how to suggest going about it

c - knows of a contribution to do so

 

 

Meanwhile 'bumping' the topic not only makes more people avoid it, it is also against forum policy.

 

If you don't get an answer, try providing more detail of what you are trying to accomplish and why. Someone may then have an idea on how to help you or may be able to suggest a better alternative

 

Questions don't get ignored, but if they people that have read it thus far don't know an answer there is nothing to post - another reason to post more information concerning the topic.

Edited by custodian

My Contributions

 

Henry Smith

Link to comment
Share on other sites

look for the file boxes/shopping_cart.php

 

look for this line

$products = $cart->get_products();

 

insert this line echo count($products);

 

and it should be working

 

to change location or to make it use other fotnts...i'm sorry but u have to hink of it...as i havent finsih thinking

hahahha

Link to comment
Share on other sites

eh guys i have this minor problem

anyone has an idea?

i use my method but i relaize this minor problem

if i buy 2 of the same product i get still 1 item

i know i did the counting on the wrong item...anyone knows where should i get it from?

Link to comment
Share on other sites

  • 3 weeks later...
eh guys i have this minor problem

anyone has an idea?

i use my method but i relaize this minor problem

if i buy 2 of the same product i get still 1 item

i know i did the counting on the wrong item...anyone knows where should i get it from?

 

 

Ispent alot of time studying php. Ihad the same problem that you did thanks for trying to help but i found out that adding this:

 

 

<?php echo $cart-> count_contents(); ?>

 

instead it will work are.

 

For exapmle:

 

Cart Contains: <?php echo $cart-> count_contents(); ?> items.<br>

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

 

Would create this:

 

Cart Contains: 12 items.

Total= 000.00

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...