Magento Email Template If Statements

后端 未结 4 1263
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-24 02:52

The Magento Email Template If Statements aren\'t evaluating to true when I expect them to. Can someone tell me what\'s wrong? Take a look at the following code:

         


        
4条回答
  •  北海茫月
    2020-12-24 03:25

    Within normal Magento blocks/classes you would use $customer->getGroupId() to access the group id value. The CMS/Email template equivalent is customer.getGroupId(), not customer.group_id like you wrote.

提交回复
热议问题