Hi,
How do I extract the item quantity from cart? I have tried $item->getOrigData('qty'). This result with var_dump in: string(8) "250.0000" string(6) "1.0000" The item quantity is 250 and correct. $itemQuantity = $item->getOrigData('qty') result in 1. How do I get 250 in my variable?
In forward thank you.
Regards, Jeroen
Solved! Go to Solution.
Hi,
To know cart quantity, use below code:
$total = $this->helper('checkout/cart')->getQuote()->getGrandTotal();
echo $this->__('', $this->helper('core')->formatPrice($total, false));
or
echo $total;
If problem solved then mark as accept.
Regards,
Dibyajyoti
Hi,
To know cart quantity, use below code:
$total = $this->helper('checkout/cart')->getQuote()->getGrandTotal();
echo $this->__('', $this->helper('core')->formatPrice($total, false));
or
echo $total;
If problem solved then mark as accept.
Regards,
Dibyajyoti
Hi,
Thanks for your reply. I have solved this issue by leaving the cart by a button and get the information from the page elements.
Regards, Jeroen