You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
total_items() returns total items in the cart. For example we have 2 items in the cart Apple and Orange, and there 2(qty) Apples and 1(qty) Orange. total_items() returns 2, because there are 2 items. But there should be a method which should return 2(qty). Should be like this
{{{
!php
function total_qty()
{
$total_qty=0;
foreach($this->contents() as $item)
{
(double)$total_qty+=(double)$item['qty'];
}
return $total_qty;
Activity
philsturgeon commentedon Apr 26, 2012
It has that now!
bcit-ci#66
Accept tls:// and ssl:// Redis session save paths