shade Posted March 29, 2006 Posted March 29, 2006 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. Quote
custodian Posted March 29, 2006 Posted March 29, 2006 (edited) 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 March 29, 2006 by custodian Quote My Contributions Henry Smith
liam1437 Posted March 31, 2006 Posted March 31, 2006 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 Quote
liam1437 Posted April 5, 2006 Posted April 5, 2006 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? Quote
shade Posted April 23, 2006 Author Posted April 23, 2006 eh guys i have this minor problemanyone 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.