跳至内容

郑家大少

我的部落格

发布于2015年5月27日2015年5月27日 由root

magento 客户登录判断代码

<?php
if ($this->helper('customer')->isLoggedIn() ) :
    ?>

……

<?php 
else:
    ?>

……

<?php endif;?>

主要语句如上 

第二种写法

Mage::getSingleton( 'customer/session' )->isLoggedIn();

 

分类Magento 标签login

文章导航

上一篇文章上一篇 M2E pro clean sync queue-如何清空M2E pro的同步队列
下一篇文章下一篇 magento bundle product backend tier price 组合产品的分组价格

近期文章

  • [Maggento V2.3.4 composer]Higher matching version 4.0.1 of mageplaza/module-same-order-number was found in public repository packagist.org
    than 1.0.3 in private https://repo.magento.com. Public package might’ve been taken over by a mal
    icious entity,
  • [Magento 2.4.3] SQLSTATE[HY000]: General error: 1419 You do not have the SUPER privilege and binary logging is enabled in setup:performance:generate-fixtures – Solved
  • Magento 1 and Magento 2 Remove the patch 撤销补丁
  • 树莓派config.txt 中hdmi部分设置
  • Docker run -p :docker: invalid publish opts format (should be name=value but got ‘83306:3306’) 错误

近期评论

    归档

    • 2021 年 12 月
    • 2021 年 11 月
    • 2021 年 1 月
    • 2020 年 12 月
    • 2020 年 9 月
    • 2020 年 7 月
    • 2020 年 5 月
    • 2020 年 4 月
    • 2019 年 12 月
    • 2019 年 11 月
    • 2019 年 5 月
    • 2019 年 3 月
    • 2019 年 1 月
    • 2018 年 10 月
    • 2018 年 8 月
    • 2018 年 7 月
    • 2018 年 6 月
    • 2018 年 4 月
    • 2018 年 3 月
    • 2018 年 2 月
    • 2017 年 5 月
    • 2017 年 4 月
    • 2017 年 3 月
    • 2016 年 10 月
    • 2016 年 4 月
    • 2016 年 1 月
    • 2015 年 10 月
    • 2015 年 6 月
    • 2015 年 5 月

    分类

    • Magento
    • MySql
    • Office
    • Python
    • Sears API
    • Software
    • Uncategorized
    • 在线学习
    • 树莓派

    其他操作

    • 登录
    • 条目 feed
    • 评论 feed
    • WordPress.org
    自豪地采用WordPress