0

How can I get global max sales qty in cart page.

this value not in each product page

1
  • Can you specify your requirement in more details what you are looking for? Commented Oct 9, 2021 at 5:55

1 Answer 1

0

You can use this code to get it :

$configValue = $this->_objectManager->get(\Magento\Framework\App\Config\ScopeConfigInterface::class)
            ->getValue('cataloginventory/item_options/max_sale_qty');
        
        echo "<pre>";print_r($configValue);die;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.