| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Changing the number of items in mini cart to the actual # of items in minicart | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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....
__________________
Paryaei Xcart pro version: 4.1.12 & All the X-cart add ons & Heavily moded |
|||||||
|
#2
|
|||||||
|
|||||||
![]() Moving to Template Editing
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() i know the following works in 4.0.x but dont know about 4.1.x
in minicart.php change Code:
Code:
|
|||||||
|
#4
|
|||||||
|
|||||||
![]() Thank you so much . it works perfectly with 4.1.6
thanks for sharing....
__________________
Paryaei Xcart pro version: 4.1.12 & All the X-cart add ons & Heavily moded |
|||||||
#5
|
|||||||
|
|||||||
![]() worked great for 4.1.3
thanks
__________________
X-Cart Version 4.1.3 ; PHP 4.4.2 ; MySQL server 4.1.18 Server Apache/2.0.53 (Fedora) ; OS Linux www.outofinkandtoner.com.au |
|||||||
#6
|
|||||||
|
|||||||
![]() I can't find that in mine Gold v4.1.9?
|
|||||||
#7
|
|||||||
|
|||||||
![]() 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
![]() |
|||||||
#8
|
|||||||
|
|||||||
![]() I decided to activate the gift certificate module and it says there's a fatal error in line 60 of the minicart.php?
|
|||||||
#9
|
|||||||||
|
|||||||||
![]() This is untested, how about changing the last line from...
$MINICART["total_items"] +=$cart["giftcerts"]; to... $MINICART["total_items"] += count($cart["giftcerts"]);
__________________
Doms kube v4.1.9 |
|||||||||
|
#10
|
|||||||
|
|||||||
![]() That appears to work
![]() ![]() ![]() ![]() |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|