且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Magento未向未登录的用户显示产品

更新时间:2023-12-04 10:27:16

在浏览管理面板的客户组"部分时,我注意到有一个"NO LOGGED IN"用户的条目.不过,有一些可疑之处. ID为"5".其他客户组从1上升到3,并且没有ID为4的条目.

Whilst going through through the customer groups section of the admin panel I noticed there was an entry for "NOT LOGGED IN" users. There was something suspicious with it, though. The ID was '5'. The other customer groups ascended from 1 to 3 and there was no entry with an id of 4.

我的解决方案是更改数据库,以将未登录"客户组的ID设置为0:

My solution was to alter my database to set the id of the 'NOT LOGGED IN' customer group to 0:

 UPDATE customer_group SET customer_group_id = 0 WHERE customer_group_code = 'NOT LOGGED IN'