Jump to content
Sign in to follow this  
shade

Item Count in shopping car instead of Product name

Recommended Posts

I would like to change the shopping cart box to show item counts instead of item names if you can help please do and thanks either way.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
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

Share this post


Link to post
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?

Share this post


Link to post
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?

 

 

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×