当前位置: 首页>>代码示例>>PHP>>正文


PHP order_total::credit_selection方法代码示例

本文整理汇总了PHP中order_total::credit_selection方法的典型用法代码示例。如果您正苦于以下问题:PHP order_total::credit_selection方法的具体用法?PHP order_total::credit_selection怎么用?PHP order_total::credit_selection使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在order_total的用法示例。


在下文中一共展示了order_total::credit_selection方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: constant

            //DokuMan - 2011-12-19 - precount for performance
            $selection[$i]['selection'] = xtc_draw_radio_field('payment', $selection[$i]['id'], $selection[$i]['id'] == $_SESSION['payment'], 'onclick="this.form.submit();"') . xtc_draw_hidden_field('act_payment', 'true');
        } else {
            $selection[$i]['selection'] = xtc_draw_hidden_field('payment', $selection[$i]['id']) . xtc_draw_hidden_field('act_payment', 'true');
        }
        if (isset($selection[$i]['error'])) {
        } else {
            $radio_buttons++;
        }
    }
    $module_smarty->assign('module_content', $selection);
} else {
    $smarty->assign('GV_COVER', 'true');
}
if (ACTIVATE_GIFT_SYSTEM == 'true') {
    $smarty->assign('module_gift', $order_total_modules->credit_selection());
}
$module_smarty->caching = 0;
$payment_block = $module_smarty->fetch(CURRENT_TEMPLATE . '/module/checkout_payment_block.html');
if ($messageStack->size('checkout_payment') > 0) {
    $smarty->assign('error', $messageStack->output('checkout_payment'));
}
if ($order->info['payment_method'] != 'no_payment' && $order->info['payment_method'] != '') {
    include_once DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php';
    //Dokuman - 2012-05-31 - fix paypal_checkout notices
    $smarty->assign('PAYMENT_METHOD', constant('MODULE_PAYMENT_' . strtoupper($order->info['payment_method']) . '_TEXT_TITLE'));
}
require_once DIR_FS_INC . 'xtc_get_products_image.inc.php';
$temp_prods = $order->products;
//BOF - DokuMan - 2011-12-19 - precount for performance
//for ($i=0, $n=sizeof($temp_prods); $i<$n; $i++) {
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:paypal_checkout.php

示例2: unset

            unset($_SESSION['payment']);
        }
    }
}
require 'includes/classes/class_order.php';
$oOrder = new order();
require 'includes/classes/class_order_total.php';
$oOrderTotalModules = new order_total();
$total_weight = $_SESSION['cart']->show_weight();
$total_count = $_SESSION['cart']->count_contents();
$total_count = $_SESSION['cart']->count_contents_virtual();
// load all enabled payment modules
require 'includes/classes/class_payment.php';
$oPaymentModules = new payment();
$selection = $oPaymentModules->selection();
$credit_selection = $oOrderTotalModules->credit_selection();
// links breadcrumb
$oBreadcrumb->add($aLang['navbar_title_1'], oos_href_link($aPages['checkout_shipping'], '', 'SSL'));
$oBreadcrumb->add($aLang['navbar_title_2'], oos_href_link($aPages['checkout_payment'], '', 'SSL'));
if (ENABLE_SSL == '1') {
    $condition_link = OOS_HTTPS_SERVER;
} else {
    $condition_link = OOS_HTTP_SERVER;
}
$condition_link .= OOS_SHOP . OOS_MEDIA . $sLanguage . '/' . $aFilename['conditions_download'];
ob_start();
require 'js/checkout_payment.js.php';
print $oPaymentModules->javascript_validation();
$javascript = ob_get_contents();
ob_end_clean();
$aOption['template_main'] = $sTheme . '/modules/checkout_payment.html';
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:checkout_payment.php

示例3: terminateEC

 /**
  * If the EC flow has to be interrupted for any reason, this does the appropriate cleanup and displays status/error messages.
  */
 function terminateEC($error_msg = '', $kill_sess_vars = false, $goto_page = '')
 {
     global $messageStack, $order, $order_total_modules;
     $stackAlert = 'header';
     // debug
     $this->_doDebug('PayPal test Log - terminateEC-A', "goto page: " . $goto_page . "\nerror_msg: " . $error_msg . "\n\nSession data: " . print_r($_SESSION, true));
     if ($kill_sess_vars) {
         if (!empty($_SESSION['paypal_ec_temp'])) {
             $this->ec_delete_user($_SESSION['customer_id']);
         }
         // Unregister the paypal session variables, making the user start over.
         unset($_SESSION['paypal_ec_temp']);
         unset($_SESSION['paypal_ec_token']);
         unset($_SESSION['paypal_ec_payer_id']);
         unset($_SESSION['paypal_ec_payer_info']);
         unset($_SESSION['paypal_ec_final']);
         unset($_SESSION['paypal_ec_markflow']);
         // debug
         $this->zcLog('termEC-1', 'Killed the session vars as requested');
     }
     $this->zcLog('termEC-2', 'BEFORE: $this->showPaymentPage = ' . (int) $this->showPaymentPage . "\nToken Data:" . $_SESSION['paypal_ec_token']);
     // force display of payment page if GV/DC active for this customer
     if (MODULE_ORDER_TOTAL_INSTALLED && $this->showPaymentPage !== true && isset($_SESSION['paypal_ec_token'])) {
         require_once DIR_WS_CLASSES . 'order.php';
         $order = new order();
         require_once DIR_WS_CLASSES . 'order_total.php';
         $order_total_modules = new order_total();
         $order_totals = $order_total_modules->process();
         $selection = $order_total_modules->credit_selection();
         if (sizeof($selection) > 0) {
             $this->showPaymentPage = true;
         }
     }
     // if came from Payment page, don't go back to it
     if ($_SESSION['paypal_ec_markflow'] == 1) {
         $this->showPaymentPage = false;
     }
     // if in DP mode, don't go to payment page ... we've already been there to get here
     if ($goto_page == FILENAME_CHECKOUT_PROCESS) {
         $this->showPaymentPage = false;
     }
     // debug
     $this->zcLog('termEC-3', 'AFTER: $this->showPaymentPage = ' . (int) $this->showPaymentPage);
     if (!empty($_SESSION['customer_first_name']) && !empty($_SESSION['customer_id'])) {
         if ($this->showPaymentPage === true || $goto_page == FILENAME_CHECKOUT_PAYMENT) {
             // debug
             $this->zcLog('termEC-4', 'We ARE logged in, and $this->showPaymentPage === true');
             // if no shipping selected or if shipping cost is < 0 goto shipping page
             if (!$_SESSION['shipping'] || $_SESSION['shipping'] == '' || $_SESSION['shipping']['cost'] < 0) {
                 // debug
                 $this->zcLog('termEC-5', 'Have no shipping method selected, or shipping < 0 so set FILENAME_CHECKOUT_SHIPPING');
                 $redirect_path = FILENAME_CHECKOUT_SHIPPING;
                 $stackAlert = 'checkout_shipping';
             } else {
                 // debug
                 $this->zcLog('termEC-6', 'We DO have a shipping method selected, so goto PAYMENT');
                 $redirect_path = FILENAME_CHECKOUT_PAYMENT;
                 $stackAlert = 'checkout_payment';
             }
         } elseif ($goto_page) {
             // debug
             $this->zcLog('termEC-7', '$this->showPaymentPage NOT true, and have custom page parameter: ' . $goto_page);
             $redirect_path = $goto_page;
             $stackAlert = 'header';
             if ($goto_page == FILENAME_SHOPPING_CART) {
                 $stackAlert = 'shopping_cart';
             }
         } else {
             // debug
             $this->zcLog('termEC-8', '$this->showPaymentPage NOT true, and NO custom page selected ... using SHIPPING as default');
             $redirect_path = FILENAME_CHECKOUT_SHIPPING;
             $stackAlert = 'checkout_shipping';
         }
     } else {
         // debug
         $this->zcLog('termEC-9', 'We are NOT logged in, so set snapshot to Shipping page, and redirect to login');
         $_SESSION['navigation']->set_snapshot(FILENAME_CHECKOUT_SHIPPING);
         $redirect_path = FILENAME_LOGIN;
         $stackAlert = 'login';
     }
     if ($error_msg) {
         $messageStack->add_session($stackAlert, $error_msg, 'error');
     }
     // debug
     $this->zcLog('termEC-10', 'Redirecting to ' . $redirect_path . ' - Stack: ' . $stackAlert . "\n" . 'Message: ' . $error_msg . "\nSession Data: " . print_r($_SESSION, true));
     zen_redirect(zen_href_link($redirect_path, '', 'SSL', true, false));
 }
开发者ID:BGCX067,项目名称:ez-commerce-svn-to-git,代码行数:90,代码来源:paypalwpp.php

示例4:

                  </tr>
';
            $radio_buttons++;
        }
        $payment_block .= '
                </table></td>
              </tr>
';
    }
    //W. Kaiser - AJAX
    $payment_block .= '
        </table></td>
      </tr>
    </table>';
    if (ACTIVATE_GIFT_SYSTEM == TRUE_STRING_S) {
        $payment_block .= $order_total_modules->credit_selection();
    }
    //---PayPal WPP Modification START ---//--
}
//---PayPal WPP Modification END ---//--
$smarty->assign('PAYMENT_BLOCK', $payment_block);
/*
$smarty->assign('CUSTOMERS_REFERENCE',olc_draw_input_field('customers_order_reference',EMPTY_STRING,'size="40"'));

$smarty->assign('COMMENTS',olc_draw_textarea_field('comments', 'soft', '60', '5', $_SESSION['comments']) . olc_draw_hidden_field('comments_added', 'YES'));

//check if display conditions on checkout page is true
if (DISPLAY_CONDITIONS_ON_CHECKOUT == TRUE_STRING_S)
{
	$shop_content_query=olc_db_query("SELECT
 					content_title,
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:checkout_payment.php

示例5:

        $selection[$i]['checked'] = 1;
    }
    if (sizeof($selection) > 1) {
        $selection[$i]['selection'] = vam_draw_radio_field('payment', $selection[$i]['id'], $selection[$i]['id'] == $selection[0]['id'], 'id="' . $selection[$i]['id'] . '"');
    } else {
        $selection[$i]['selection'] = vam_draw_hidden_field('payment', $selection[$i]['id']);
    }
    $selection[$i]['id'] = $selection[$i]['id'];
    if (isset($selection[$i]['error'])) {
    } else {
        $radio_buttons++;
    }
}
$module->assign('module_content', $selection);
if (ACTIVATE_GIFT_SYSTEM == 'true') {
    $vamTemplate->assign('module_gift', $order_total_modules->credit_selection());
}
$module->caching = 0;
$payment_block = $module->fetch(CURRENT_TEMPLATE . '/module/checkout_payment_block.html');
$vamTemplate->assign('COMMENTS', vam_draw_textarea_field('comments', 'soft', '60', '5', $_POST['comments']) . vam_draw_hidden_field('comments_added', 'YES'));
$vamTemplate->assign('conditions', 'false');
//check if display conditions on checkout page is true
if (DISPLAY_CONDITIONS_ON_CHECKOUT == 'true') {
    $vamTemplate->assign('conditions', 'true');
    if (GROUP_CHECK == 'true') {
        $group_check = "and group_ids LIKE '%c_" . $_SESSION['customers_status']['customers_status_id'] . "_group%'";
    }
    $shop_content_query = vam_db_query("SELECT\n\t                                                content_title,\n\t                                                content_heading,\n\t                                                content_text,\n\t                                                content_file\n\t                                                FROM " . TABLE_CONTENT_MANAGER . "\n\t                                                WHERE content_group='3' " . $group_check . "\n\t                                                AND languages_id='" . $_SESSION['languages_id'] . "'");
    $shop_content_data = vam_db_fetch_array($shop_content_query);
    if ($shop_content_data['content_file'] != '') {
        $conditions = '<iframe SRC="' . DIR_WS_CATALOG . 'media/content/' . $shop_content_data['content_file'] . '" width="100%" height="300">';
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:checkout_alternative.php

示例6: tep_draw_separator

                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php 
echo tep_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
      </tr>
<?php 
// #################### Added CGV ######################
echo $order_total_modules->credit_selection();
//ICW ADDED FOR CREDIT CLASS SYSTEM
// #################### End Added CGV ######################
?>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><b><?php 
echo TABLE_HEADING_PAYMENT_METHOD;
?>
</b></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
开发者ID:eosc,项目名称:EosC-2.3,代码行数:31,代码来源:checkout_payment.php

示例7: elseif

    $selection[$i]['radio'] = $radio_buttons;
    if ($selection[$i]['id'] == $payment || $n == 1) {
        $selection[$i]['on'] = 1;
    }
    if (sizeof($selection) > 1) {
        $selection[$i]['field'] = tep_draw_radio_field('payment', $selection[$i]['id']);
    } else {
        $selection[$i]['field'] = tep_draw_hidden_field('payment', $selection[$i]['id']);
    }
    if (isset($selection[$i]['error'])) {
        $selection[$i]['serr'] == 1;
    } elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) {
        $selection[$i]['sfields'] = 1;
        for ($j = 0, $n2 = sizeof($selection[$i]['fields']); $j < $n2; $j++) {
            $fields[$i] = $selection[$i]['fields'];
        }
    }
    $radio_buttons++;
}
$xoopsTpl->assign("selections", $selection);
$xoopsTpl->assign("fields", $fields);
// #################### Added CGV ######################
$xoopsTpl->assign("coupon_text", $order_total_modules->credit_selection());
//ICW ADDED FOR CREDIT CLASS SYSTEM
// #################### End Added CGV ######################
$xoopsTpl->assign("comment", tep_draw_textarea_field('comments', 'soft', '60', '5'));
$xoopsTpl->assign("cont_img", tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
$xoopsTpl->assign("co_img", tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'));
$xoopsTpl->assign("co_link", tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
include_once XOOPS_ROOT_PATH . '/footer.php';
include XOOPS_ROOT_PATH . "/modules/osC/includes/application_bottom.php";
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:checkout_payment.php

示例8: selection

 function selection()
 {
     global $smarty;
     $payments = get_third_party_payments();
     if (ACTIVATE_GIFT_SYSTEM == 'true') {
         require_once DIR_WS_CLASSES . 'order_total.php';
         $order_total_modules = new order_total();
         $credit_selection = $order_total_modules->credit_selection();
     }
     if (isset($credit_selection) && is_array($credit_selection) && count($credit_selection) > 0) {
         $payments = array();
     }
     if (isset($_SESSION['payment'])) {
         for ($i = 0, $n = count($payments); $i < $n; $i++) {
             if ($payments[$i]['id'] == $_SESSION['payment']) {
                 $_SESSION['payment'] = $this->code;
             }
         }
     }
     $_SESSION['paypal']['approval'] = $this->payment_redirect(false, true);
     if ($_SESSION['paypal']['approval'] == '') {
         $GLOBALS['paypalplus']->enabled = false;
     } else {
         $description = '<div id="ppp_result"></div>
   <script type="text/javascript">
     (function() {
       var pp = document . createElement(\'script\');
       pp.type = \'text/javascript\';
       pp.async = true;
       pp.src = \'https://www.paypalobjects.com/webstatic/ppplus/ppplus.min.js\';
       var s = document.getElementsByTagName(\'script\')[0];
       s . parentNode . insertBefore(pp, s);
     })();
     $(window).on(\'load\',function() {
       ' . (count($payments) > 0 ? '
       if ($(\'input[name="payment"]:checked\', \'#checkout_payment\').val() == "' . $this->code . '") {
         $("#continueButton").attr("onclick", "ppp.doContinue(); return false;");
       }
       ' : '') . '
       $("#checkout_payment").attr("name", "checkout_payment");        
       $.get("' . xtc_href_link('callback/paypal/paypalplus.php', '', 'SSL') . '", function(data) {
         $("#ppp_result").html(data);
       });
       ' . ($this->get_config('MODULE_PAYMENT_' . strtoupper($this->code) . '_USE_TABS') == '1' || count($payments) > 0 ? '
       $("[id*=\\"rd\\"]").click(function(e) {
         if ($(\'input[name="payment"]:checked\', \'#checkout_payment\').val() == "' . $this->code . '") {
           ' . ($this->get_config('MODULE_PAYMENT_' . strtoupper($this->code) . '_USE_TABS') == '1' ? '
           $.get("' . xtc_href_link('callback/paypal/paypalplus.php', '', 'SSL') . '", function(data) {
             $("#ppp_result").html(data);
           });
           ' : '') . '
           ' . (count($payments) > 0 ? '
           $("#continueButton").removeAttr("onclick");
           $("#continueButton").attr("onclick", "ppp.doContinue(); return false;");
           ' : '') . '
         } else {
           ' . (count($payments) > 0 ? '$("#continueButton").removeAttr("onclick");' : '') . '
         }
       });' : '') . '
     });
   </script>';
         $smarty->assign('BUTTON_CONTINUE', xtc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE, 'id="continueButton"'));
         return array('id' => $this->code, 'module' => $this->title, 'description' => $this->info . $description);
     }
 }
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:65,代码来源:paypalplus.php


注:本文中的order_total::credit_selection方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。