本文介绍了NetSuite-检查用户是否正确登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个问题.我正在与NetSuite电子商务合作,需要检查一些内容,我的网站在登录用户时运行脚本,但是有时即使在仍获取NetSuite属性的情况下也会要求登录.像这样:
I have a little question. I am working with NetSuite eCommerce and I need to check something, my site runs a script when user is logged, but sometimes it asks for a login even when still getting NetSuite Attributes. Something like this:
var loginEmail = "<%=getCurrentAttribute('customer','email')%>";
if(loginEmail==null || loginEmail=="") {
$("#cart").hide();
}
else {
$("#cart").show();
}
您知道我应该调用/使用的特定NetSuite属性或标记吗?
Do you know a specific NetSuite attribute or tag that I should be calling/using?
推荐答案
代替
<%=getCurrentAttribute('customer','email')%>
尝试使用
<%=getCurrentAttribute('customer','entityid')%>
这篇关于NetSuite-检查用户是否正确登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!