Magento cart not updating quantity in arabic store view

大城市里の小女人 提交于 2019-12-03 16:53:44

Try to remove this code by overriding it on "local"

        if (isset($params['qty'])) {
            $filter = new Zend_Filter_LocalizedToNormalized(
                    array('locale' => Mage::app()->getLocale()->getLocaleCode())
            );
            $params['qty'] = $filter->filter($params['qty']);
        }

from app\code\core\Mage\Checkout\controllers\CartController.php (line 183)

Create to overrride app\code\local\Mage\Checkout\controllers\CartController.php

And remove this also by overriding it on "local"

    if (isset($data['qty'])) {
        $cartData[$index]['qty'] = $filter->filter(trim($data['qty']));
    }

from app\code\core\Mage\Checkout\controllers\CartController.php (line 428)

Create to override app\code\local\Mage\Checkout\controllers\CartController.php

Also remove this by overriding it on "local"

    if (isset($params['qty'])) {
        $filter = new Zend_Filter_LocalizedToNormalized(
            array('locale' => Mage::app()->getLocale()->getLocaleCode())
        );
        $params['qty'] = $filter->filter($params['qty']);
    }

from app\code\core\Mage\Checkout\controllers\CartController.php (line 327)

Create to override app\code\local\Mage\Checkout\controllers\CartController.php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!