當前位置: 首頁>>代碼示例>>PHP>>正文


PHP EE_Transaction::is_free方法代碼示例

本文整理匯總了PHP中EE_Transaction::is_free方法的典型用法代碼示例。如果您正苦於以下問題:PHP EE_Transaction::is_free方法的具體用法?PHP EE_Transaction::is_free怎麽用?PHP EE_Transaction::is_free使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在EE_Transaction的用法示例。


在下文中一共展示了EE_Transaction::is_free方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: process_shortcode

 /**
  * 	process_shortcode - EES_Espresso_Thank_You
  *
  *  @access 	public
  *  @param	array 	$attributes
  *  @return 	string
  */
 public function process_shortcode($attributes = array())
 {
     $this->init();
     if (!$this->_current_txn instanceof EE_Transaction) {
         EE_Error::add_error(__('No transaction information could be retrieved or the transaction data is not of the correct type.', 'event_espresso'), __FILE__, __FUNCTION__, __LINE__);
         return '';
     }
     // link to receipt
     $template_args['TXN_receipt_url'] = $this->_current_txn->receipt_url('html');
     $template_args['transaction'] = $this->_current_txn;
     add_action('AHEE__thank_you_page_overview_template__content', array($this, 'get_registration_details'));
     if ($this->_is_primary && !$this->_current_txn->is_free()) {
         add_action('AHEE__thank_you_page_overview_template__content', array($this, 'get_ajax_content'));
     }
     return EEH_Template::locate_template(THANK_YOU_TEMPLATES_PATH . 'thank-you-page-overview.template.php', $template_args, TRUE, TRUE);
 }
開發者ID:antares-ff,項目名稱:ANTARES-Test,代碼行數:23,代碼來源:EES_Espresso_Thank_You.shortcode.php

示例2: process_shortcode

 /**
  *    process_shortcode - EES_Espresso_Thank_You
  *
  * @access    public
  * @param    array $attributes
  * @return    string
  * @throws \EE_Error
  */
 public function process_shortcode($attributes = array())
 {
     $this->init();
     if (!$this->_current_txn instanceof EE_Transaction) {
         return EE_Error::get_notices();
     }
     //EEH_Debug_Tools::log( __CLASS__, __FUNCTION__, __LINE__, array( $this->_current_txn ), true, 	'EE_Transaction: ' . $this->_current_txn->ID() );
     // link to receipt
     $template_args['TXN_receipt_url'] = $this->_current_txn->receipt_url('html');
     if (!empty($template_args['TXN_receipt_url'])) {
         $template_args['order_conf_desc'] = __('%1$sCongratulations%2$sYour registration has been successfully processed.%3$sCheck your email for your registration confirmation or click the button below to view / download / print a full description of your purchases and registration information.', 'event_espresso');
     } else {
         $template_args['order_conf_desc'] = __('%1$sCongratulations%2$sYour registration has been successfully processed.%3$sCheck your email for your registration confirmation.', 'event_espresso');
     }
     $template_args['transaction'] = $this->_current_txn;
     $template_args['revisit'] = EE_Registry::instance()->REQ->get('revisit', false);
     add_action('AHEE__thank_you_page_overview_template__content', array($this, 'get_registration_details'));
     if ($this->_is_primary && !$this->_current_txn->is_free()) {
         add_action('AHEE__thank_you_page_overview_template__content', array($this, 'get_ajax_content'));
     }
     return EEH_Template::locate_template(THANK_YOU_TEMPLATES_PATH . 'thank-you-page-overview.template.php', $template_args, true, true);
 }
開發者ID:aaronfrey,項目名稱:PepperLillie-GSP,代碼行數:30,代碼來源:EES_Espresso_Thank_You.shortcode.php

示例3: payment_required

 /**
  * payment_required
  * @return boolean
  */
 public function payment_required()
 {
     // if NOT:
     //		registration via admin
     //		completed TXN
     //		overpaid TXN
     //		free TXN ( total = 0.00 )
     // then payment required is TRUE
     return !($this->admin_request || $this->transaction->is_completed() || $this->transaction->is_overpaid() || $this->transaction->is_free()) ? TRUE : FALSE;
 }
開發者ID:rheator,項目名稱:event-espresso-core,代碼行數:14,代碼來源:EE_Checkout.class.php


注:本文中的EE_Transaction::is_free方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。