Forum

Thread tagged as: Question, Shop

shop without login (automatically created members?)

I noticed that perch is automatically creating a member for "non logged in customer". is there a way we can avoid that?

I am showing member name on top of the page, but as guest checkout without login, on thanks page, it shows them member name on the top as if they are logged in, unfortunately, other areas of the site are not working because I have additional tables for members details.

I just don't want perch to auto login a guest user on checkout as a member.

sawan ruparel

sawan ruparel 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You have to have a member in order to check out. The customer doesn't need to explicitly create the account, but it needs to exist.

I worked around it by using below code

        if(PerchSystem::get_var('points')==""){
            perch_member_log_out();
        }

after result page is shown