Public Member Functions | |
getOrderHasDownloadable () | |
getDownloadableProductsUrl () |
Definition at line 34 of file Success.php.
getDownloadableProductsUrl | ( | ) |
Return url to list of ordered downloadable products of customer
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
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 }