Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在magento中使用ajax更新微型购物车中的数量值_Magento - Fatal编程技术网

在magento中使用ajax更新微型购物车中的数量值

在magento中使用ajax更新微型购物车中的数量值,magento,Magento,我是magento的初学者 您好,我需要在magento中使用ajax更新minicart标题中每个产品的数量值(如flipkart) 我需要知道更新数量值的函数 如果您有任何帮助,我们将不胜感激。请检查此扩展,它可能会有用: 我已经让它工作了 请查找以下代码以供参考 url=jQuery('#minicart_popup').attr('action'); var myAjax = new Ajax.Request( url, { method: 'po

我是magento的初学者

您好,我需要在magento中使用ajax更新minicart标题中每个产品的数量值(如flipkart)

我需要知道更新数量值的函数


如果您有任何帮助,我们将不胜感激。

请检查此扩展,它可能会有用:

我已经让它工作了

请查找以下代码以供参考

url=jQuery('#minicart_popup').attr('action');
    var myAjax = new Ajax.Request(
    url,
    {
        method: 'post',
        postBody: $('minicart_popup').serialize(),
            parameters : Form.serialize("minicart_popup"),
                onException: function (xhr, e)
        {
            alert('Exception : ' + e);
        },
onComplete: function (xhr)
        {

           // Do your stuff here           

        }

    });