1

I am creating a Quote programmatically, I have found a field IsSuperMode on Quote object.

What effect does it have on the Quote ?

Class: /Magento/Backend/Model/Session/Quote.php

https://github.com/magento/magento2/blob/c20732c44c3373dec86e40e5885969a46a6524ef/app/code/Magento/Backend/Model/Session/Quote.php#L173 /Magento/Backend/Model/Session/Quote.php

3

The quote is set into super mode in app/code/core/Mage/Adminhtml/Model/Session/Quote.php:

$this->_quote->setIsSuperMode(true);

Essentially it is a flag on the quote that this quote has been created by an admin. The effect of this is in the locations you stated that an admin can for example create an order for an item that normally would be out of stock or is not visible in the catalog.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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