Mage_Downloadable_Block_Checkout_Success Class Reference

Inheritance diagram for Mage_Downloadable_Block_Checkout_Success:

Mage_Checkout_Block_Onepage_Success Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getOrderHasDownloadable ()
 getDownloadableProductsUrl ()


Detailed Description

Definition at line 34 of file Success.php.


Member Function Documentation

getDownloadableProductsUrl (  ) 

Return url to list of ordered downloadable products of customer

Returns:
string

Definition at line 63 of file Success.php.

00064     {
00065         return $this->getUrl('downloadable/customer/products', array('_secure' => true));
00066     }

getOrderHasDownloadable (  ) 

Return true if order(s) has one or more downloadable products

Returns:
bool

if use guest checkout

Definition at line 42 of file Success.php.

00043     {
00044         $hasDownloadableFlag = Mage::getSingleton('checkout/session')
00045             ->getHasDownloadableProducts(true);
00046         if (!$this->isOrderVisible()) {
00047             return false;
00048         }
00049         /**
00050          * if use guest checkout
00051          */
00052         if (!Mage::getSingleton('customer/session')->getCustomerId()) {
00053             return false;
00054         }
00055         return $hasDownloadableFlag;
00056     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:08 2009 for Magento by  doxygen 1.5.8