Magento basket does not update quantity in Arab store

I have the following problem with installing Magento 1.8.1. I have two types of storage, English, by default, and Arabic.

In the English store view, if I add a product to the shopping basket, I can change the quantity by entering a new quantity in the qty field and clicking on “Update shopping basket”, which changes the quantity and the total values.

However, when I switch to the presentation in the Arab store, I cannot update the quantity of any products. I enter the required quantity and click update, but the page reloads with only 1 part of the product, and the final values ​​remain unchanged. I tested and I noticed that the cart is only updated for quantities over 31.

I have tried / checked the following:

  • This line is present in cart.phtml - getBlockHtml ('formkey') ;? >
  • Is this line present in cart.phtml - getChildHtml ('form_before')? >
  • No Javascript Errors.
  • I use the default function for the cart, there is no Ajax or anything else.
  • I tried replacing the cart.phtml file with the original in the base folder, this is the same.
  • I tried adding the store id to the url, this did not fix the problem.
  • CLeared cache manually.
  • There are no errors in php logs.
  • I set up Inventory Management in the Catalog / Inventory and reindexed, this did not fix the problem.

Any ideas are welcome.

Thanks Alex

+4
source share
1 answer

Try deleting this code by redefining it as "local"

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

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

\code\local\Mage\Checkout\controllers\CartController.php

, ""

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

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

, \code\local\Mage\Checkout\controllers\CartController.php

, ""

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

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

, \code\local\Mage\Checkout\controllers\CartController.php

+4

Source: https://habr.com/ru/post/1532972/


All Articles