designfront Posted February 6, 2009 Report Share Posted February 6, 2009 (edited) hi all trying to count all items in my cart this is wht ime trying right now it works fine but if i add more of the same product it doesnt count it, how would i go about that? thanks in advance function render_mini_cart() { $shopping_cart = get_shopping_cart(); $product_count = 0; $items = $product_count; foreach ($shopping_cart->GetItems() as $product_id) { $product_count++; } echo "".$product_count." items"; } Edited February 6, 2009 by designfront Quote Link to comment Share on other sites More sharing options...
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.