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


PHP Checkout::user_membership_required方法代码示例

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


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

示例1: getPasswordFields

 public function getPasswordFields()
 {
     $loginlink = "Security/login?BackURL=" . CheckoutPage::find_link(true);
     $fields = FieldList::create(HeaderField::create(_t('CheckoutField.MEMBERSHIPDETAILS', 'Membership Details'), 3), LiteralField::create('MemberInfo', '<p class="message warning">' . _t('CheckoutField.MEMBERINFO', 'If you are already a member please') . " <a href=\"{$loginlink}\">" . _t('OrderForm.LogIn', 'log in') . '</a>.' . '</p>'), LiteralField::create('AccountInfo', '<p>' . _t('CheckoutField.ACCOUNTINFO', 'Please choose a password, so you can login and check your order history in the future') . '</p>'), $this->getPasswordField());
     if (!Checkout::user_membership_required()) {
         $pwf->setCanBeEmpty(true);
     }
     return $fields;
 }
开发者ID:NobrainerWeb,项目名称:silverstripe-shop,代码行数:9,代码来源:CheckoutFieldFactory.php

示例2: getPasswordFields

 public function getPasswordFields()
 {
     $loginlink = "Security/login?BackURL=" . CheckoutPage::find_link(true);
     $fields = FieldList::create(HeaderField::create(_t('CheckoutField.MembershipDetails', 'Membership Details'), 3), LiteralField::create('MemberInfo', '<p class="message warning">' . _t('CheckoutField.MemberLoginInfo', 'If you are already a member please <a href="{LoginUrl}">log in</a>', '', array('LoginUrl' => $loginlink)) . '</p>'), LiteralField::create('AccountInfo', '<p>' . _t('CheckoutField.AccountInfo', 'Please choose a password, so you can login and check your order history in the future') . '</p>'), $pwf = $this->getPasswordField());
     if (!Checkout::user_membership_required()) {
         $pwf->setCanBeEmpty(true);
     }
     return $fields;
 }
开发者ID:burnbright,项目名称:silverstripe-shop,代码行数:9,代码来源:CheckoutFieldFactory.php


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