Public Member Functions | |
checkQuoteAmount (Mage_Sales_Model_Quote $quote, $amount) | |
canSendNewOrderConfirmationEmail ($store=null) | |
canSendNewOrderEmail ($store=null) | |
canSendOrderCommentEmail ($store=null) | |
canSendNewShipmentEmail ($store=null) | |
canSendShipmentCommentEmail ($store=null) | |
canSendNewInvoiceEmail ($store=null) | |
canSendInvoiceCommentEmail ($store=null) | |
canSendNewCreditmemoEmail ($store=null) | |
canSendCreditmemoCommentEmail ($store=null) | |
Public Attributes | |
const | MAXIMUM_AVAILABLE_NUMBER = 99999999 |
Definition at line 32 of file Data.php.
canSendCreditmemoCommentEmail | ( | $ | store = null |
) |
Definition at line 87 of file Data.php.
00088 { 00089 return Mage::getStoreConfigFlag(Mage_Sales_Model_Order_Creditmemo::XML_PATH_UPDATE_EMAIL_ENABLED, $store); 00090 }
canSendInvoiceCommentEmail | ( | $ | store = null |
) |
Definition at line 77 of file Data.php.
00078 { 00079 return Mage::getStoreConfigFlag(Mage_Sales_Model_Order_Invoice::XML_PATH_UPDATE_EMAIL_ENABLED, $store); 00080 }
canSendNewCreditmemoEmail | ( | $ | store = null |
) |
Definition at line 82 of file Data.php.
00083 { 00084 return Mage::getStoreConfigFlag(Mage_Sales_Model_Order_Creditmemo::XML_PATH_EMAIL_ENABLED, $store); 00085 }
canSendNewInvoiceEmail | ( | $ | store = null |
) |
Definition at line 72 of file Data.php.
00073 { 00074 return Mage::getStoreConfigFlag(Mage_Sales_Model_Order_Invoice::XML_PATH_EMAIL_ENABLED, $store); 00075 }
canSendNewOrderConfirmationEmail | ( | $ | store = null |
) |
Definition at line 47 of file Data.php.
00048 { 00049 return Mage::getStoreConfigFlag(Mage_Sales_Model_Order::XML_PATH_EMAIL_ENABLED, $store); 00050 }
canSendNewOrderEmail | ( | $ | store = null |
) |
Definition at line 52 of file Data.php.
00053 { 00054 return $this->canSendNewOrderConfirmationEmail($store); 00055 }
canSendNewShipmentEmail | ( | $ | store = null |
) |
Definition at line 62 of file Data.php.
00063 { 00064 return Mage::getStoreConfigFlag(Mage_Sales_Model_Order_Shipment::XML_PATH_EMAIL_ENABLED, $store); 00065 }
canSendOrderCommentEmail | ( | $ | store = null |
) |
Definition at line 57 of file Data.php.
00058 { 00059 return Mage::getStoreConfigFlag(Mage_Sales_Model_Order::XML_PATH_UPDATE_EMAIL_ENABLED, $store); 00060 }
canSendShipmentCommentEmail | ( | $ | store = null |
) |
Definition at line 67 of file Data.php.
00068 { 00069 return Mage::getStoreConfigFlag(Mage_Sales_Model_Order_Shipment::XML_PATH_UPDATE_EMAIL_ENABLED, $store); 00070 }
checkQuoteAmount | ( | Mage_Sales_Model_Quote $ | quote, | |
$ | amount | |||
) |
Definition at line 36 of file Data.php.
00037 { 00038 if (!$quote->getHasError() && ($amount>=self::MAXIMUM_AVAILABLE_NUMBER)) { 00039 $quote->setHasError(true); 00040 $quote->addMessage( 00041 $this->__('Some items have quantities exceeding allowed quantities. Please select a lower quantity to checkout.') 00042 ); 00043 } 00044 return $this; 00045 }
const MAXIMUM_AVAILABLE_NUMBER = 99999999 |