8

I see a function isSuperMode() which is called on quote and quote item objects. Can anyone tell me what isSuperMode() means in that case?

I found the code in:

  1. checkQuoteItemQty function at class Mage_CatalogInventory_Model_Observer

  2. Also in _initItem function at class Mage_Sales_Model_Quote_Address_Total_Subtotal

17

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.