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.
Solved! Go to Solution.
To know cart quantity, use below code:
$total = $this->helper('checkout/cart')->getQuote()->getGrandTotal();
echo $this->__('', $this->helper('core')->formatPrice($total, false));
If problem solved then mark as accept.
Thanks for your reply. I have solved this issue by leaving the cart by a button and get the information from the page elements.