{"id":71627,"date":"2017-01-14T12:47:22","date_gmt":"2017-01-14T12:47:22","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=71627"},"modified":"2025-12-11T10:34:23","modified_gmt":"2025-12-11T10:34:23","slug":"update-item-quantity-minicart-magento2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/","title":{"rendered":"How to Update Item Quantity in Minicart Adobe Commerce (Magento 2)"},"content":{"rendered":"\n<p>We\u2019ll discuss here how to update item quantities directly from the mini cart in Magento 2, making the shopping experience faster and more convenient.<\/p>\n\n\n\n<p><strong>1.<\/strong> Add custom controller to the customer data section, so when quantity will change then, it will update minicart automatically.<\/p>\n\n\n\n<p>This is because when any ajax request get complete, then Magento looks for the section to be update.<\/p>\n\n\n\n<p>you can see in this file: Magento\/Customer\/view\/frontend\/web\/js\/customer-data.js<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/**\n     * Events listener\n     *\/\n    $(document).on(&#039;ajaxComplete&#039;, function (event, xhr, settings) {\n        var sections,\n            redirects;\n\n        if (settings.type.match(\/post|put\/i)) {\n            sections = sectionConfig.getAffectedSections(settings.url);\n            if (sections) {\n                customerData.invalidate(sections);\n                redirects = &#091;&#039;redirect&#039;, &#039;backUrl&#039;];\n\n                if (_.isObject(xhr.responseJSON) &amp;&amp; !_.isEmpty(_.pick(xhr.responseJSON, redirects))) {\n                    return;\n                }\n                customerData.reload(sections, true);\n            }\n        }\n    });<\/pre>\n\n\n\n<p>When any request gets complete on DOM it&#8217;s looks for the section, if section is there it reload<br>the section.<\/p>\n\n\n\n<p>Let&#8217;s create <strong>Webkul\/Knockout\/etc\/frontend\/sections.xml<\/strong> file<br><br>here you can see we have defined our Controller path.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?xml version=&quot;1.0&quot;?&gt;\n\n&lt;config xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;\n        xsi:noNamespaceSchemaLocation=&quot;urn:magento:module:Magento_Customer:etc\/sections.xsd&quot;&gt;\n    &lt;action name=&quot;knockout\/ajax\/cartUpdate&quot;&gt;\n        &lt;section name=&quot;cart&quot;\/&gt;\n    &lt;\/action&gt;\n&lt;\/config&gt;<\/pre>\n\n\n\n<p><strong>2. <\/strong>Now Create js file where you need to update the Minicart.<br><strong>Note:<\/strong> You can read our another blog: <a href=\"https:\/\/webkul.com\/blog\/use-knockout-js-custom-template-magento2\/\">How to use Knockout JS on custom template in Adobe Commerce<\/a> for help with knockout in magento.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">define(&#091;\n    &#039;jquery&#039;,\n    &#039;uiComponent&#039;,\n    &#039;mage\/validation&#039;,\n    &#039;ko&#039;,\n    &#039;mage\/storage&#039;,\n    &#039;mage\/url&#039;,\n    &#039;mage\/cookies&#039;\n    ], function ($, Component, validation, ko, storage, urlBuilder) {\n        &#039;use strict&#039;;\n        return Component.extend({\n            defaults: {\n                template: &#039;Webkul_Knockout\/knockout-test&#039;\n            },\n\n            initialize: function () {\n                this._super();\n                var self = this;\n\n                \/\/Here, we have used click event on custom button with class &#039;.update-minicart&#039;.\n                $(&quot;body&quot;).on(&quot;click&quot;, &quot;.update-minicart&quot;, function () {\n                    self.updateMinicart();\n                })\n            },\n            \n            \/\/call this function on button click\n            updateMinicart: function () {\n                this._ajax(&#039;knockout\/ajax\/cartUpdate&#039;, {\n                    item_id: 436, \/\/change item id according to test\n                    item_qty: 3 \/\/qty you want to update\n                });\n            },\n            \/**\n             * @param {String} url - ajax url\n             * @param {Object} data - post data for ajax call\n             * @param {Object} elem - element that initiated the event\n             * @param {Function} callback - callback method to execute after AJAX success\n             *\/\n            _ajax: function (url, data) {\n                $.extend(data, {\n                    &#039;form_key&#039;: $.mage.cookies.get(&#039;form_key&#039;)\n                });\n                $.ajax({\n                    url: urlBuilder.build(url),\n                    data: data,\n                    type: &#039;post&#039;,\n                    dataType: &#039;json&#039;,\n                    context: this,\n                }).done(function (response) {\n                        alert(&#039;hey! you updated successfully, checkout mini cart.&#039;)\n                    })\n                    .fail(function (error) {\n                        console.log(JSON.stringify(error));\n                    });\n            },\n        });\n    }\n);<\/pre>\n\n\n\n<p>For test, you can use the following html file.<br><strong>File: Webkul\/Knockout\/view\/frontend\/web\/template\/knockout-test.html<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;div class=&quot;customcomponent-wrapper&quot; data-block=&quot;customcomponent&quot;&gt;\n    &lt;button type=&quot;button&quot; class=&quot;update-minicart&quot;&gt;&lt;span data-bind=&quot;i18n: &#039;Update Minicart&#039;&quot;&gt;&lt;\/span&gt;&lt;\/button&gt;\n&lt;\/div&gt;<\/pre>\n\n\n\n<p><strong>3.<\/strong> Finally the last thing is to create Controller File:<br><strong>Webkul\/Knockout\/Controller\/Ajax\/CartUpdate.php<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nnamespace Webkul\\Knockout\\Controller\\Ajax;\n\nuse Magento\\Checkout\\Model\\Sidebar;\nuse Magento\\Framework\\App\\Action\\Action;\nuse Magento\\Framework\\App\\Action\\Context;\nuse Magento\\Framework\\App\\Response\\Http;\nuse Magento\\Framework\\Exception\\LocalizedException;\nuse Magento\\Framework\\Json\\Helper\\Data;\nuse Psr\\Log\\LoggerInterface;\nuse Magento\\Checkout\\Model\\Cart;\n\nclass CartUpdate extends Action\n{\n    \/**\n     * @var Sidebar\n     *\/\n    protected $sidebar;\n\n    \/**\n     * @var LoggerInterface\n     *\/\n    protected $logger;\n\n    \/**\n     * @var Data\n     *\/\n    protected $jsonHelper;\n\n    \/**\n     * @var Cart\n     *\/\n    protected $cart;\n\n    \/**\n     * @param Context $context\n     * @param Cart $cart\n     * @param \\Magento\\Checkout\\Model\\Session $checkoutSession\n     * @param Sidebar $sidebar\n     * @param LoggerInterface $logger\n     * @param Data $jsonHelper\n     *\/\n    public function __construct(\n        Context $context,\n        Cart $cart,\n        \\Magento\\Checkout\\Model\\Session $checkoutSession,\n        Sidebar $sidebar,\n        LoggerInterface $logger,\n        Data $jsonHelper\n    ) {\n        $this-&gt;sidebar = $sidebar;\n        $this-&gt;logger = $logger;\n        $this-&gt;jsonHelper = $jsonHelper;\n        $this-&gt;_checkoutSession = $checkoutSession;\n        $this-&gt;cart = $cart;\n        parent::__construct($context);\n    }\n\n    \/**\n     * @return $this\n     *\/\n    public function execute()\n    {\n        $itemId = (int)$this-&gt;getRequest()-&gt;getParam(&#039;item_id&#039;);\n        $itemQty = (int)$this-&gt;getRequest()-&gt;getParam(&#039;item_qty&#039;);\n\n        try {\n            $this-&gt;updateQuoteItem($itemId, $itemQty);\n            return $this-&gt;jsonResponse();\n        } catch (LocalizedException $e) {\n            return $this-&gt;jsonResponse($e-&gt;getMessage());\n        } catch (\\Exception $e) {\n            $this-&gt;logger-&gt;critical($e);\n            return $this-&gt;jsonResponse($e-&gt;getMessage());\n        }\n    }\n\n    \/**\n     * Update quote item\n     *\n     * @param int $itemId\n     * @param int $itemQty\n     * @throws LocalizedException\n     * @return $this\n     *\/\n    public function updateQuoteItem($itemId, $itemQty)\n    {\n        $itemData = &#091;$itemId =&gt; &#091;&#039;qty&#039; =&gt; $itemQty]];\n        $this-&gt;cart-&gt;updateItems($itemData)-&gt;save();\n    }\n\n    \/**\n     * Get quote object associated with cart. By default it is current customer session quote\n     *\n     * @return \\Magento\\Quote\\Model\\Quote\n     *\/\n    public function getQuote()\n    {\n        return $this-&gt;_checkoutSession-&gt;getQuote();\n    }\n\n    \/**\n     * Compile JSON response\n     *\n     * @param string $error\n     * @return Http\n     *\/\n    protected function jsonResponse($error = &#039;&#039;)\n    {\n        return $this-&gt;getResponse()-&gt;representJson(\n            $this-&gt;jsonHelper-&gt;jsonEncode($this-&gt;sidebar-&gt;getResponseData($error))\n        );\n    }\n}<\/pre>\n\n\n\n<p>If you require any technical support, please get in touch with us at support@webkul.com. Moreover, explore a range of solutions to augment your store&#8217;s features by visiting the <a href=\"https:\/\/store.webkul.com\/Magento-2.html\">Adobe Commerce extensions <\/a>page.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<p>Furthermore, if you need expert guidance or wish to create custom functionalities, consider hiring <a href=\"https:\/\/webkul.com\/hire-magento-developers\/\">Adobe Commerce Developers<\/a> for your project.<\/p>\n\n\n\n<p>That&#8217;s it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019ll discuss here how to update item quantities directly from the mini cart in Magento 2, making the shopping experience faster and more convenient. 1. Add custom controller to the customer data section, so when quantity will change then, it will update minicart automatically. This is because when any ajax request get complete, then Magento <a href=\"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":4,"featured_media":70648,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1807,302,3286],"tags":[4351,4352],"class_list":["post-71627","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ajax-cart","category-magento2","category-magento2-1","tag-magento2-minicart","tag-update-cart-magento2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Update Item Quantity in Minicart Adobe Commerce<\/title>\n<meta name=\"description\" content=\"Here we learn, How to Update Item Quantity in Minicart Adobe Commerce (Magento2). Will use Adobe commerce step by step process.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Update Item Quantity in Minicart Adobe Commerce\" \/>\n<meta property=\"og:description\" content=\"Here we learn, How to Update Item Quantity in Minicart Adobe Commerce (Magento2). Will use Adobe commerce step by step process.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-14T12:47:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-11T10:34:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Magneto-Code-Snippet-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Abhishek Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abhishek Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/\"},\"author\":{\"name\":\"Abhishek Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0\"},\"headline\":\"How to Update Item Quantity in Minicart Adobe Commerce (Magento 2)\",\"datePublished\":\"2017-01-14T12:47:22+00:00\",\"dateModified\":\"2025-12-11T10:34:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/\"},\"wordCount\":247,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Magneto-Code-Snippet-1.png\",\"keywords\":[\"Magento2 minicart\",\"update cart magento2\"],\"articleSection\":[\"Ajax Cart\",\"Magento2\",\"Magento2.1\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/\",\"url\":\"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/\",\"name\":\"How to Update Item Quantity in Minicart Adobe Commerce\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Magneto-Code-Snippet-1.png\",\"datePublished\":\"2017-01-14T12:47:22+00:00\",\"dateModified\":\"2025-12-11T10:34:23+00:00\",\"description\":\"Here we learn, How to Update Item Quantity in Minicart Adobe Commerce (Magento2). Will use Adobe commerce step by step process.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Magneto-Code-Snippet-1.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Magneto-Code-Snippet-1.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Update Item Quantity in Minicart Adobe Commerce (Magento 2)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0\",\"name\":\"Abhishek Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Abhishek Singh\"},\"description\":\"Adobe Commerce certified Magento developer with over 12 years of experience at Webkul. Passionate about scalable Magento 2-based webshops, AI, and multi-channel integrations, Abhishek consistently delivers innovative and efficient e-commerce solutions that propel businesses forward.\",\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/abhishek\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Update Item Quantity in Minicart Adobe Commerce","description":"Here we learn, How to Update Item Quantity in Minicart Adobe Commerce (Magento2). Will use Adobe commerce step by step process.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/","og_locale":"en_US","og_type":"article","og_title":"How to Update Item Quantity in Minicart Adobe Commerce","og_description":"Here we learn, How to Update Item Quantity in Minicart Adobe Commerce (Magento2). Will use Adobe commerce step by step process.","og_url":"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2017-01-14T12:47:22+00:00","article_modified_time":"2025-12-11T10:34:23+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Magneto-Code-Snippet-1.png","type":"image\/png"}],"author":"Abhishek Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Abhishek Singh","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/"},"author":{"name":"Abhishek Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0"},"headline":"How to Update Item Quantity in Minicart Adobe Commerce (Magento 2)","datePublished":"2017-01-14T12:47:22+00:00","dateModified":"2025-12-11T10:34:23+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/"},"wordCount":247,"commentCount":4,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Magneto-Code-Snippet-1.png","keywords":["Magento2 minicart","update cart magento2"],"articleSection":["Ajax Cart","Magento2","Magento2.1"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/","url":"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/","name":"How to Update Item Quantity in Minicart Adobe Commerce","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Magneto-Code-Snippet-1.png","datePublished":"2017-01-14T12:47:22+00:00","dateModified":"2025-12-11T10:34:23+00:00","description":"Here we learn, How to Update Item Quantity in Minicart Adobe Commerce (Magento2). Will use Adobe commerce step by step process.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Magneto-Code-Snippet-1.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Magneto-Code-Snippet-1.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/update-item-quantity-minicart-magento2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Update Item Quantity in Minicart Adobe Commerce (Magento 2)"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0","name":"Abhishek Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Abhishek Singh"},"description":"Adobe Commerce certified Magento developer with over 12 years of experience at Webkul. Passionate about scalable Magento 2-based webshops, AI, and multi-channel integrations, Abhishek consistently delivers innovative and efficient e-commerce solutions that propel businesses forward.","sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/abhishek\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/71627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=71627"}],"version-history":[{"count":11,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/71627\/revisions"}],"predecessor-version":[{"id":516536,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/71627\/revisions\/516536"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/70648"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=71627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=71627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=71627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}