![]() |
Changing the number of items in mini cart to the actual # of items in minicart
Does any body know how to alter the minicart.php file to show the actual number of items (products) in the mini cart ??
For example currently : if someone adds a quantity of 3, but from 1 item it will say: ---> Items: 1 but i would like to see it saying Items: 3 I found some old code from 2002-2003 that dont work for 4.1.6 any help is appreciate it.... |
Re: Changing the number of items in mini cart to the actual # of items in minicart
Moving to Template Editing
|
Re: Changing the number of items in mini cart to the actual # of items in minicart
i know the following works in 4.0.x but dont know about 4.1.x
in minicart.php change Code:
$MINICART["total_items"] = ((!empty($cart["products"]) and is_array($car Code:
$MINICART["total_items"] = 0; |
Re: Changing the number of items in mini cart to the actual # of items in minicart
Thank you so much . it works perfectly with 4.1.6
thanks for sharing.... |
Re: Changing the number of items in mini cart to the actual # of items in minicart
worked great for 4.1.3
thanks |
Re: Changing the number of items in mini cart to the actual # of items in minicart
I can't find that in mine Gold v4.1.9?
|
Re: Changing the number of items in mini cart to the actual # of items in minicart
Figured it out why I couldn't find the file. Its on the server, not edit templates. Yes, I know, I'm a noob. Works on my version btw:mrgreen:
|
Re: Changing the number of items in mini cart to the actual # of items in minicart
I decided to activate the gift certificate module and it says there's a fatal error in line 60 of the minicart.php?
|
Re: Changing the number of items in mini cart to the actual # of items in minicart
This is untested, how about changing the last line from...
$MINICART["total_items"] +=$cart["giftcerts"]; to... $MINICART["total_items"] += count($cart["giftcerts"]); |
Re: Changing the number of items in mini cart to the actual # of items in minicart
That appears to work:lol: :lol: :lol: :D/
|
Re: Changing the number of items in mini cart to the actual # of items in minicart
I tried this but it doesnt work for me....i get an error " Parse error: syntax error, unexpected $end in /home/trendytt/public_html/minicart.php on line 65"
my gift certifictes module is disabled.....any ideas? Quote:
|
Re: Changing the number of items in mini cart to the actual # of items in minicart
Seems to work in 4.2.x as well
|
Re: Changing the number of items in mini cart to the actual # of items in minicart
I have problem in using 4.3.1 version. It does not change the item number and total unless I refresh the page. This is teh case for all browsers
|
All times are GMT -8. The time now is 07:58 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.