{"id":300517,"date":"2021-08-09T11:07:34","date_gmt":"2021-08-09T11:07:34","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=300517"},"modified":"2025-09-15T12:59:39","modified_gmt":"2025-09-15T12:59:39","slug":"how-to-display-left-quantity-on-product-page-in-magento-2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/","title":{"rendered":"How to Display Left Quantity on Product Page in Magento 2"},"content":{"rendered":"\n<p>\u201cHurry Up!! Only 5 Qty left in stock\u201d<\/p>\n\n\n\n<p>This Type of Marketing strategy is use for prompt potential customers to convert before their products run out of stock.<\/p>\n\n\n\n<p><strong>Why showing left quantity matters<\/strong><\/p>\n\n\n\n<p>Showing the stock left\u2014\u201csalable quantity\u201d\u2014creates urgency for customers.<br>Moreover, stores with multiple warehouses (using MSI) need correct stock display.<\/p>\n\n\n\n<p>If product stock is hidden, it may mislead customers or cause lost sales.<br>Thus, it\u2019s better to show real\u2010time remaining quantity under correct conditions.<\/p>\n\n\n\n<p><strong>Prerequisites: Magento 2 MSI &amp; Inventory Setup<\/strong><\/p>\n\n\n\n<p>Magento 2.3+ introduced <strong>Multi-Source Inventory (MSI)<\/strong>.<br>For more details, check Adobe\u2019s official guide on <a href=\"https:\/\/developer.adobe.com\/commerce\/webapi\/rest\/inventory\/\">Inventory Management APIs<\/a>.<\/p>\n\n\n\n<p><br>This provides <code>GetProductSalableQtyInterface<\/code> and <code>StockResolverInterface<\/code> to compute correct stock. <\/p>\n\n\n\n<p>Make sure MSI is enabled and sources are configured properly.<br>Otherwise, \u201csalable quantity\u201d may not reflect your actual warehouse inventory.<a href=\"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img decoding=\"async\" width=\"1106\" height=\"555\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/image-39.png\" alt=\"Left Qty Show\" class=\"wp-image-300518\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/image-39.png 1106w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/image-39-300x151.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/image-39-250x125.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/image-39-768x385.png 768w\" sizes=\"(max-width: 1106px) 100vw, 1106px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Salable quantity in Magento 2 represents the total stock available across all sources or warehouses.<br>It helps manage inventory centrally and prevents overselling or unexpected stockouts.<\/p>\n\n\n\n<p><a href=\"https:\/\/webkul.com\/blog\/get-salable-quantity-in-magento-2-3\/\" target=\"_blank\" rel=\"noreferrer noopener\">Get product salable quantity in Magento 2<\/a> and display left quantity on the product page!<\/p>\n\n\n\n<p>Follow steps the below code to do so.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create <strong>registration.php<\/strong> at <strong>app\/code\/&lt;vendor name&gt;\/&lt;module name&gt;\/<\/strong><\/li>\n<\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\\Magento\\Framework\\Component\\ComponentRegistrar::register(\n    \\Magento\\Framework\\Component\\ComponentRegistrar::MODULE,\n    &#039;Webkul_LeftQty&#039;,\n    __DIR__\n);<\/pre>\n\n\n\n<p>2. Create&nbsp;<strong>module.xml<\/strong>&nbsp;file at&nbsp;<strong>app\/code\/&lt;vendor name&gt;\/&lt;module name&gt;\/etc\/<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?xml version=&quot;1.0&quot;?&gt;\n&lt;config xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;\n        xsi:noNamespaceSchemaLocation=&quot;urn:magento:framework:Module\/etc\/module.xsd&quot;&gt;\n    &lt;module name=&quot;Webkul_LeftQty&quot;\/&gt;\n&lt;\/config&gt;<\/pre>\n\n\n\n<p>3. Create&nbsp;<strong>LeftQty.php<\/strong> file at&nbsp;<strong>app\/code\/<strong><strong>&lt;vendor name&gt;\/&lt;module name&gt;<\/strong><\/strong>\/Block\/&nbsp;<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nnamespace Webkul\\LeftQty\\Block;\n\nuse Magento\\Catalog\\Model\\ProductFactory;\nuse Magento\\InventorySalesApi\\Api\\GetProductSalableQtyInterface;\nuse Magento\\InventorySalesApi\\Api\\StockResolverInterface;\nuse Magento\\Store\\Model\\StoreManagerInterface;\nuse Magento\\InventorySalesApi\\Api\\Data\\SalesChannelInterface;\n\n\/**\n * Class LeftQty\n * @package Webkul\\LeftQty\\Block\n *\/\nclass LeftQty extends \\Magento\\Framework\\View\\Element\\Template\n{\n    \/**\n     * @var GetProductSalableQtyInterface\n     *\/\n    protected $salebleqty;\n\n    \/**\n     * @var StockResolverInterface\n     *\/\n    protected $stockresolver;\n\n    \/**\n     * @var StoreManagerInterface\n     *\/\n    protected $storemanager;\n\n    \/**\n     * @var Http\n     *\/\n    protected $request;\n\n    \/**\n     * @var ProductFactory\n     *\/\n    protected $product;\n\n    \/**\n     * LeftQty constructor.\n     * @param \\Magento\\Backend\\Block\\Template\\Context $context\n     * @param \\Magento\\Framework\\App\\Request\\Http $request\n     * @param ProductFactory $product\n     * @param StoreManagerInterface $storemanager\n     * @param GetProductSalableQtyInterface $salebleqty\n     * @param StockResolverInterface $stockresolver\n     * @param array $data\n     *\/\n    public function __construct(\n        \\Magento\\Backend\\Block\\Template\\Context $context,\n        \\Magento\\Framework\\App\\Request\\Http $request,\n        ProductFactory $product,\n        StoreManagerInterface $storemanager,\n        GetProductSalableQtyInterface $salebleqty,\n        StockResolverInterface $stockresolver,\n        array $data = &#091;])\n    {\n        $this-&gt;request = $request;\n        $this-&gt;product = $product;\n        $this-&gt;storemanager = $storemanager;\n        $this-&gt;salebleqty = $salebleqty;\n        $this-&gt;stockresolver = $stockresolver;\n        parent::__construct($context, $data);\n    }\n\n    \/**\n     * @throws \\Magento\\Framework\\Exception\\LocalizedException\n     * @throws \\Magento\\Framework\\Exception\\NoSuchEntityException\n     *\/\n    public function saleble()\n    {\n        $productId = $this-&gt;request-&gt;getParam(&#039;id&#039;);\n        $websiteCode = $this-&gt;storemanager-&gt;getWebsite()-&gt;getCode();\n        $stockDetails = $this-&gt;stockresolver-&gt;execute(SalesChannelInterface::TYPE_WEBSITE, $websiteCode);\n        $stockId = $stockDetails-&gt;getStockId();\n        $productDetails = $this-&gt;product-&gt;create()-&gt;load($productId);\n        $sku = $productDetails-&gt;getSku();\n        $proType = $productDetails-&gt;getTypeId();\n\n        if ($proType != &#039;configurable&#039; &amp;&amp; $proType != &#039;bundle&#039; &amp;&amp; $proType != &#039;grouped&#039;) {\n            $stockQty = $this-&gt;salebleqty-&gt;execute($sku, $stockId);\n            return $stockQty;\n        } else {\n            return &#039;&#039;;\n        }\n\n    }\n}<\/pre>\n\n\n\n<p>4. Create <strong>catalog_product_view.xml<\/strong> file at <strong>app\/code\/<strong><strong>&lt;vendor name&gt;\/&lt;module name&gt;<\/strong><\/strong>\/view\/frontend\/layout\/<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?xml version=&quot;1.0&quot;?&gt;\n&lt;page xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;\n      xsi:noNamespaceSchemaLocation=&quot;urn:magento:framework:View\/Layout\/etc\/page_configuration.xsd&quot;&gt;\n    &lt;body&gt;\n        &lt;referenceBlock name=&quot;alert.urls&quot;&gt;\n            &lt;block class=&quot;Webkul\\LeftQty\\Block\\LeftQty&quot; name=&quot;catalog.product.view.leftqtyshow&quot;\n                   before=&quot;product.info.addtocart&quot; template=&quot;Webkul_LeftQty::leftqty.phtml&quot; cacheable=&quot;false&quot;\/&gt;\n        &lt;\/referenceBlock&gt;\n    &lt;\/body&gt;\n&lt;\/page&gt;<\/pre>\n\n\n\n<p>5. Create <strong>leftqty.phtml<\/strong> file at <strong>app\/code\/&lt;vendor name&gt;\/&lt;module name&gt;\/view\/frontend\/templates\/<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?= &quot;&lt;span&gt;&quot;.__(&quot;Hurry Up!! Only %1 Qty left in stock&quot;,$block-&gt;saleble()) . &quot;&lt;\/span&gt;&quot;;?&gt;<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Conclusion<\/strong><\/p>\n\n\n\n<p>In conclusion, displaying left quantity on the product page under the conditions above improves transparency, urgency, and trust.<\/p>\n\n\n\n<p>Moreover, by using Magento 2 MSI APIs and correct product-type checks, you ensure accurate stock information is shown.<\/p>\n\n\n\n<p>That&#8217;s all<\/p>\n\n\n\n<p>If any issue or doubt please feel free to mentioned in comment section.<\/p>\n\n\n\n<p>I would be happy to help.<\/p>\n\n\n\n<p>Happy Coding!!! \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u201cHurry Up!! Only 5 Qty left in stock\u201d This Type of Marketing strategy is use for prompt potential customers to convert before their products run out of stock. Why showing left quantity matters Showing the stock left\u2014\u201csalable quantity\u201d\u2014creates urgency for customers.Moreover, stores with multiple warehouses (using MSI) need correct stock display. If product stock is <a href=\"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":372,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9121],"tags":[2460],"class_list":["post-300517","post","type-post","status-publish","format-standard","hentry","category-magento-2","tag-magento-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Display Left Quantity on Product Page in Magento 2 - Webkul Blog<\/title>\n<meta name=\"description\" content=\"Webkul Blog How to Display Left Quantity on Product Page in Magento 2 Magento 2 - %\" \/>\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\/how-to-display-left-quantity-on-product-page-in-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Display Left Quantity on Product Page in Magento 2 - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Webkul Blog How to Display Left Quantity on Product Page in Magento 2 Magento 2 - %\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/\" \/>\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=\"2021-08-09T11:07:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-15T12:59:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/image-39.png\" \/>\n<meta name=\"author\" content=\"Sushil Kumar\" \/>\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=\"Sushil Kumar\" \/>\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\/how-to-display-left-quantity-on-product-page-in-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/\"},\"author\":{\"name\":\"Sushil Kumar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/513087aa54cb0448c572658ecfcad038\"},\"headline\":\"How to Display Left Quantity on Product Page in Magento 2\",\"datePublished\":\"2021-08-09T11:07:34+00:00\",\"dateModified\":\"2025-09-15T12:59:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/\"},\"wordCount\":335,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/image-39.png\",\"keywords\":[\"Magento 2\"],\"articleSection\":[\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/\",\"name\":\"How to Display Left Quantity on Product Page in Magento 2 - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/image-39.png\",\"datePublished\":\"2021-08-09T11:07:34+00:00\",\"dateModified\":\"2025-09-15T12:59:39+00:00\",\"description\":\"Webkul Blog How to Display Left Quantity on Product Page in Magento 2 Magento 2 - %\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/image-39.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/image-39.png\",\"width\":1106,\"height\":555,\"caption\":\"image-39\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Display Left Quantity on Product Page in 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\/513087aa54cb0448c572658ecfcad038\",\"name\":\"Sushil Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c74cd7e0ce5fab0c3fa41d3e51de621a5492bea06afc4b577f10416abddf1ed3?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\/c74cd7e0ce5fab0c3fa41d3e51de621a5492bea06afc4b577f10416abddf1ed3?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Sushil Kumar\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/sushil-kumar419\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Display Left Quantity on Product Page in Magento 2 - Webkul Blog","description":"Webkul Blog How to Display Left Quantity on Product Page in Magento 2 Magento 2 - %","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\/how-to-display-left-quantity-on-product-page-in-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"How to Display Left Quantity on Product Page in Magento 2 - Webkul Blog","og_description":"Webkul Blog How to Display Left Quantity on Product Page in Magento 2 Magento 2 - %","og_url":"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2021-08-09T11:07:34+00:00","article_modified_time":"2025-09-15T12:59:39+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/image-39.png","type":"","width":"","height":""}],"author":"Sushil Kumar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Sushil Kumar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/"},"author":{"name":"Sushil Kumar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/513087aa54cb0448c572658ecfcad038"},"headline":"How to Display Left Quantity on Product Page in Magento 2","datePublished":"2021-08-09T11:07:34+00:00","dateModified":"2025-09-15T12:59:39+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/"},"wordCount":335,"commentCount":2,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/image-39.png","keywords":["Magento 2"],"articleSection":["Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/","url":"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/","name":"How to Display Left Quantity on Product Page in Magento 2 - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/08\/image-39.png","datePublished":"2021-08-09T11:07:34+00:00","dateModified":"2025-09-15T12:59:39+00:00","description":"Webkul Blog How to Display Left Quantity on Product Page in Magento 2 Magento 2 - %","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/image-39.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/image-39.png","width":1106,"height":555,"caption":"image-39"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-display-left-quantity-on-product-page-in-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Display Left Quantity on Product Page in 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\/513087aa54cb0448c572658ecfcad038","name":"Sushil Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c74cd7e0ce5fab0c3fa41d3e51de621a5492bea06afc4b577f10416abddf1ed3?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\/c74cd7e0ce5fab0c3fa41d3e51de621a5492bea06afc4b577f10416abddf1ed3?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Sushil Kumar"},"url":"https:\/\/webkul.com\/blog\/author\/sushil-kumar419\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/300517","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\/372"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=300517"}],"version-history":[{"count":11,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/300517\/revisions"}],"predecessor-version":[{"id":506603,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/300517\/revisions\/506603"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=300517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=300517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=300517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}