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


PHP mslib_fe::getCustomerMappedMethods方法代码示例

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


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

示例1: array

                     }
                     if (!count($shipping_methods_group)) {
                         $shipping_methods = $shipping_methods_product;
                     }
                 }
             }
             break;
         case 'customers':
             if ($this->ms['MODULES']['CUSTOMER_EDIT_METHOD_FILTER']) {
                 $payment_methods = array();
                 $shipping_methods = array();
                 $user_id = array();
                 $user_id = $GLOBALS['TSFE']->fe_user->user['uid'];
                 if (is_numeric($user_id)) {
                     $payment_methods_user = mslib_fe::getCustomerMappedMethods($user_id, 'payment', $user_country);
                     $shipping_methods_user = mslib_fe::getCustomerMappedMethods($user_id, 'shipping');
                     if (!count($payment_methods_user)) {
                         $payment_methods = $payment_methods_group;
                     }
                     if (!count($shipping_methods)) {
                         $shipping_methods = $shipping_methods_group;
                     }
                 }
             }
             break;
     }
 }
 if (!count($payment_methods)) {
     // nothing is loaded. this cant be valid so let's load the default methods.
     // loading payment methods
     $payment_methods = mslib_fe::loadPaymentMethods(0, $user_country, true, true);
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:checkout.php

示例2: array

            break;
        case 'customers_groups':
            if (mslib_fe::loggedin() && $this->ms['MODULES']['GROUP_EDIT_METHOD_FILTER']) {
                $user_groups = array();
                $user_groups = explode(',', $GLOBALS['TSFE']->fe_user->user['usergroup']);
                if (count($user_groups)) {
                    $mapped_shipping_methods_group = mslib_fe::getCustomerGroupMappedMethods($user_groups, 'shipping', $tmp_countries['cn_iso_nr']);
                }
            }
            break;
        case 'customers':
            if (mslib_fe::loggedin() && $this->ms['MODULES']['CUSTOMER_EDIT_METHOD_FILTER']) {
                $user_id = array();
                $user_id = $GLOBALS['TSFE']->fe_user->user['uid'];
                if (is_numeric($user_id)) {
                    $mapped_shipping_methods_user = mslib_fe::getCustomerMappedMethods($user_id, 'shipping', $tmp_countries['cn_iso_nr']);
                }
            }
            break;
    }
}
if (count($mapped_shipping_methods_user)) {
    $mapped_shipping_methods = $mapped_shipping_methods_user;
} else {
    if (count($mapped_shipping_methods_group)) {
        $mapped_shipping_methods = $mapped_shipping_methods_group;
    } else {
        if (count($mapped_shipping_methods_product)) {
            $mapped_shipping_methods = $mapped_shipping_methods_product;
        }
    }
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:get_method_costs.php

示例3: array

            break;
        case 'customers_groups':
            if (mslib_fe::loggedin() && $this->ms['MODULES']['GROUP_EDIT_METHOD_FILTER']) {
                $user_groups = array();
                $user_groups = explode(',', $GLOBALS['TSFE']->fe_user->user['usergroup']);
                if (count($user_groups)) {
                    $payment_methods_group = mslib_fe::getCustomerGroupMappedMethods($user_groups, 'payment', $countries_id);
                }
            }
            break;
        case 'customers':
            if (mslib_fe::loggedin() && $this->ms['MODULES']['CUSTOMER_EDIT_METHOD_FILTER']) {
                $user_id = array();
                $user_id = $GLOBALS['TSFE']->fe_user->user['uid'];
                if (is_numeric($user_id)) {
                    $payment_methods_user = mslib_fe::getCustomerMappedMethods($user_id, 'payment', $countries_id);
                }
            }
            break;
    }
}
if (count($payment_methods_user)) {
    $payment_methods = $payment_methods_user;
} else {
    if (count($payment_methods_group)) {
        $payment_methods = $payment_methods_group;
    } else {
        $payment_methods = $payment_methods_product;
    }
}
if (!count($payment_methods)) {
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:get_country_payment_methods.php


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