I am running Virtuemart 2.0.18. I need for what you want to achieve , is to display the total number of products in the cart with a number such as " 10 " simply . If you have an image to the cart , I want to place next to the image .
I found a similar question , but the answer is applied - did not work in my situation nor .
I have found this thread on stackoverflow: to display the number of items in the cart in virtuemart joomal 2.5?
It did not solve my problem the solution :
Code : [Select]
< ? PHP
$ Array = unserialize (['vmcart'] $ _SESSION [' a __ vm']);
Total $ = 0;
{ - ( as > product $ product $ array ) of foreach
$ Total + = $ product - > amount ;
}
" Total product : " echo . Total $ ;
? >
I just works if you go to ( like running on the cookie cart ) cart . If you want to add some products to count the number is off , PHP will not work me. Whole code does not work at all basically .
The same way as what is to do this in PHP or there , Do you have any JavaScript to access the cookies , we will continue to get the amount of product in the cart ?
Thank you in advance for your help , I really appreciate it !
Please look at the code of virtuemart cart MODUL, you will find what you need there
In addition , you can create an override to use this MOD
10/12/2013
1/31/2013
Virtuemart Cart Pro Module
This
excellent small
basket
is
simply that
will, easy!
It's
good for
just about any website
that
simply must
show the
particular basket
complete
throughout
still
left Per
appropriate
facet
from
the internet
site and
yes it includes
ajax operation.
Your
internet site guests
might
have the
likelihood for
you to bring
up to date his
or her shopping
cart software quickly,
with
no holding
out the
actual web
page insert
whenever
they
create
something
with
their basket
Made
a decision to show
within
quit
middle
Per
proper
heart
facet
of
one's internet
site for
straightforward to
determine.Whenever
go
through the “ Enhance
cart” key,
the
items may
travel
to
the basket.
This
excellent effection result
in the buyer
straightforward
their
particular activity.Customer
can
make upon
Or
switch
off trolley
exhibit
Subscribe to:
Posts (Atom)