How to Disable Customer Accounts/Sign In Without Breaking the Shopping Cart in Magento 2.0.4?












1















So I have installed a fresh install of Magento 2.0.4, on my old magento 1.9.2.3 site, I have disabled the customer accounts through various methods and the cart works fine. customers are directed to paypal express checkout. I have now spent the better part of all morning with customers disabled through the advanced section of the configuration for the site.



HUGE PROBLEM



This for some reason totally breaks the shopping cart. I cant remove items. Items don't show up in the basket, but are really there after i add another item, again not being able to remove it.



So I now have the customer enabled in the backend advanced section, but i dont want ANY customer data locally and only have that stored in paypal. This is for my safety, and theirs (the customer) as I, just like many other magento store owners have well been versed on all kinds of hacks.



Is there some sane way to disable the customer/account/sign in without breaking the shopping cart?










share|improve this question



























    1















    So I have installed a fresh install of Magento 2.0.4, on my old magento 1.9.2.3 site, I have disabled the customer accounts through various methods and the cart works fine. customers are directed to paypal express checkout. I have now spent the better part of all morning with customers disabled through the advanced section of the configuration for the site.



    HUGE PROBLEM



    This for some reason totally breaks the shopping cart. I cant remove items. Items don't show up in the basket, but are really there after i add another item, again not being able to remove it.



    So I now have the customer enabled in the backend advanced section, but i dont want ANY customer data locally and only have that stored in paypal. This is for my safety, and theirs (the customer) as I, just like many other magento store owners have well been versed on all kinds of hacks.



    Is there some sane way to disable the customer/account/sign in without breaking the shopping cart?










    share|improve this question

























      1












      1








      1








      So I have installed a fresh install of Magento 2.0.4, on my old magento 1.9.2.3 site, I have disabled the customer accounts through various methods and the cart works fine. customers are directed to paypal express checkout. I have now spent the better part of all morning with customers disabled through the advanced section of the configuration for the site.



      HUGE PROBLEM



      This for some reason totally breaks the shopping cart. I cant remove items. Items don't show up in the basket, but are really there after i add another item, again not being able to remove it.



      So I now have the customer enabled in the backend advanced section, but i dont want ANY customer data locally and only have that stored in paypal. This is for my safety, and theirs (the customer) as I, just like many other magento store owners have well been versed on all kinds of hacks.



      Is there some sane way to disable the customer/account/sign in without breaking the shopping cart?










      share|improve this question














      So I have installed a fresh install of Magento 2.0.4, on my old magento 1.9.2.3 site, I have disabled the customer accounts through various methods and the cart works fine. customers are directed to paypal express checkout. I have now spent the better part of all morning with customers disabled through the advanced section of the configuration for the site.



      HUGE PROBLEM



      This for some reason totally breaks the shopping cart. I cant remove items. Items don't show up in the basket, but are really there after i add another item, again not being able to remove it.



      So I now have the customer enabled in the backend advanced section, but i dont want ANY customer data locally and only have that stored in paypal. This is for my safety, and theirs (the customer) as I, just like many other magento store owners have well been versed on all kinds of hacks.



      Is there some sane way to disable the customer/account/sign in without breaking the shopping cart?







      magento2 customer-account shopping-cart






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 4 '16 at 13:06









      ChrisChris

      3619




      3619






















          3 Answers
          3






          active

          oldest

          votes


















          0














          Check this: Weird behavior after login



          I think you're experiencing the same behavior, look at the answers maybe one of them can help you.



          EDIT:
          Also, check this: https://stackoverflow.com/questions/3617832/disable-customer-in-magento
          I think is the answer.






          share|improve this answer


























          • That is a really old q&a and I am currently using magneto 2.0.4, so while sort of helpful not really. I actually did successfully remove the sign in/register from the header, it should just be much easier, and its not. After I get my head wrapped around an solid how to answer I will answer my own question, yet again

            – Chris
            May 6 '16 at 12:31











          • Well, yeah it's old, but the answer is still applicable. I've been working with the login functions and what I saw is Magento never uses the field is_active inside customer_entity table, so it can be used inside a plugin of execute() function defined in MagentoCustomerControllerAccountLoginPost. I'm using Magento 2.0.2 .

            – hiperboreo
            May 9 '16 at 2:41





















          0














          This is how i did it.
          I am using the luma theme your theme might differ, but should be similar. I found the right blocks to delete by enabled in the admin store -> configuration -> advanced -> developer -> debug -> enable hints and add block names to hints



          I edited the /var/www/magento2/vendor/magento/theme-frontend-luma/Magento_Customer/layout/default.xml



          and changed



          <move element="register-link" destination="header.links"/>


          to



          <move element="register-link" destination="delete"/>


          and added the following



          <referenceBlock name="customer" remove="true" />
          <referenceBlock name="authorization-link-login" remove="true" />


          this takes care of it on the main page



          I have added this to my /etc/http/conf.d/ssl.conf to drop all external connections to the signup for customers page



          <LocationMatch "/customer/account/">
          Order Deny,Allow
          Deny from All
          Allow from 192.168.100.0/24
          </LocationMatch>


          I also have removed the newsletter, review, rss, sendfriend, and wishlist because I think they link back to the customer account pages



          It would be really swell if the developers could disconnect the customer module from the shopping basket module, so I could just disable the customer side if I wanted any other above features, but I don't, so I don't care. I try to remove any boxes for someone to drop code in, regardless of whether there is a known attack vector or not. Call me paranoid I have no need at the moment for customer accounts or any of the things I disabled and my shopping basket ships off straight to a paypal checkout so there is no input on my end (I really don't want to be responsible for customer credentials and cc #s at this point).






          share|improve this answer

































            0














            Editing the templates files and redirecting through server is a nice hack.



            Here is an interesting module, just tested, it is fully working :
            https://github.com/deved-it/magento2-disable-customer-registration



            It disable only the 'Create an account' function, and redirect on accessing direct link : /customer/account/create/






            share|improve this answer























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "479"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f113948%2fhow-to-disable-customer-accounts-sign-in-without-breaking-the-shopping-cart-in-m%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              Check this: Weird behavior after login



              I think you're experiencing the same behavior, look at the answers maybe one of them can help you.



              EDIT:
              Also, check this: https://stackoverflow.com/questions/3617832/disable-customer-in-magento
              I think is the answer.






              share|improve this answer


























              • That is a really old q&a and I am currently using magneto 2.0.4, so while sort of helpful not really. I actually did successfully remove the sign in/register from the header, it should just be much easier, and its not. After I get my head wrapped around an solid how to answer I will answer my own question, yet again

                – Chris
                May 6 '16 at 12:31











              • Well, yeah it's old, but the answer is still applicable. I've been working with the login functions and what I saw is Magento never uses the field is_active inside customer_entity table, so it can be used inside a plugin of execute() function defined in MagentoCustomerControllerAccountLoginPost. I'm using Magento 2.0.2 .

                – hiperboreo
                May 9 '16 at 2:41


















              0














              Check this: Weird behavior after login



              I think you're experiencing the same behavior, look at the answers maybe one of them can help you.



              EDIT:
              Also, check this: https://stackoverflow.com/questions/3617832/disable-customer-in-magento
              I think is the answer.






              share|improve this answer


























              • That is a really old q&a and I am currently using magneto 2.0.4, so while sort of helpful not really. I actually did successfully remove the sign in/register from the header, it should just be much easier, and its not. After I get my head wrapped around an solid how to answer I will answer my own question, yet again

                – Chris
                May 6 '16 at 12:31











              • Well, yeah it's old, but the answer is still applicable. I've been working with the login functions and what I saw is Magento never uses the field is_active inside customer_entity table, so it can be used inside a plugin of execute() function defined in MagentoCustomerControllerAccountLoginPost. I'm using Magento 2.0.2 .

                – hiperboreo
                May 9 '16 at 2:41
















              0












              0








              0







              Check this: Weird behavior after login



              I think you're experiencing the same behavior, look at the answers maybe one of them can help you.



              EDIT:
              Also, check this: https://stackoverflow.com/questions/3617832/disable-customer-in-magento
              I think is the answer.






              share|improve this answer















              Check this: Weird behavior after login



              I think you're experiencing the same behavior, look at the answers maybe one of them can help you.



              EDIT:
              Also, check this: https://stackoverflow.com/questions/3617832/disable-customer-in-magento
              I think is the answer.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited May 23 '17 at 12:37









              Community

              1




              1










              answered May 5 '16 at 9:32









              hiperboreohiperboreo

              154113




              154113













              • That is a really old q&a and I am currently using magneto 2.0.4, so while sort of helpful not really. I actually did successfully remove the sign in/register from the header, it should just be much easier, and its not. After I get my head wrapped around an solid how to answer I will answer my own question, yet again

                – Chris
                May 6 '16 at 12:31











              • Well, yeah it's old, but the answer is still applicable. I've been working with the login functions and what I saw is Magento never uses the field is_active inside customer_entity table, so it can be used inside a plugin of execute() function defined in MagentoCustomerControllerAccountLoginPost. I'm using Magento 2.0.2 .

                – hiperboreo
                May 9 '16 at 2:41





















              • That is a really old q&a and I am currently using magneto 2.0.4, so while sort of helpful not really. I actually did successfully remove the sign in/register from the header, it should just be much easier, and its not. After I get my head wrapped around an solid how to answer I will answer my own question, yet again

                – Chris
                May 6 '16 at 12:31











              • Well, yeah it's old, but the answer is still applicable. I've been working with the login functions and what I saw is Magento never uses the field is_active inside customer_entity table, so it can be used inside a plugin of execute() function defined in MagentoCustomerControllerAccountLoginPost. I'm using Magento 2.0.2 .

                – hiperboreo
                May 9 '16 at 2:41



















              That is a really old q&a and I am currently using magneto 2.0.4, so while sort of helpful not really. I actually did successfully remove the sign in/register from the header, it should just be much easier, and its not. After I get my head wrapped around an solid how to answer I will answer my own question, yet again

              – Chris
              May 6 '16 at 12:31





              That is a really old q&a and I am currently using magneto 2.0.4, so while sort of helpful not really. I actually did successfully remove the sign in/register from the header, it should just be much easier, and its not. After I get my head wrapped around an solid how to answer I will answer my own question, yet again

              – Chris
              May 6 '16 at 12:31













              Well, yeah it's old, but the answer is still applicable. I've been working with the login functions and what I saw is Magento never uses the field is_active inside customer_entity table, so it can be used inside a plugin of execute() function defined in MagentoCustomerControllerAccountLoginPost. I'm using Magento 2.0.2 .

              – hiperboreo
              May 9 '16 at 2:41







              Well, yeah it's old, but the answer is still applicable. I've been working with the login functions and what I saw is Magento never uses the field is_active inside customer_entity table, so it can be used inside a plugin of execute() function defined in MagentoCustomerControllerAccountLoginPost. I'm using Magento 2.0.2 .

              – hiperboreo
              May 9 '16 at 2:41















              0














              This is how i did it.
              I am using the luma theme your theme might differ, but should be similar. I found the right blocks to delete by enabled in the admin store -> configuration -> advanced -> developer -> debug -> enable hints and add block names to hints



              I edited the /var/www/magento2/vendor/magento/theme-frontend-luma/Magento_Customer/layout/default.xml



              and changed



              <move element="register-link" destination="header.links"/>


              to



              <move element="register-link" destination="delete"/>


              and added the following



              <referenceBlock name="customer" remove="true" />
              <referenceBlock name="authorization-link-login" remove="true" />


              this takes care of it on the main page



              I have added this to my /etc/http/conf.d/ssl.conf to drop all external connections to the signup for customers page



              <LocationMatch "/customer/account/">
              Order Deny,Allow
              Deny from All
              Allow from 192.168.100.0/24
              </LocationMatch>


              I also have removed the newsletter, review, rss, sendfriend, and wishlist because I think they link back to the customer account pages



              It would be really swell if the developers could disconnect the customer module from the shopping basket module, so I could just disable the customer side if I wanted any other above features, but I don't, so I don't care. I try to remove any boxes for someone to drop code in, regardless of whether there is a known attack vector or not. Call me paranoid I have no need at the moment for customer accounts or any of the things I disabled and my shopping basket ships off straight to a paypal checkout so there is no input on my end (I really don't want to be responsible for customer credentials and cc #s at this point).






              share|improve this answer






























                0














                This is how i did it.
                I am using the luma theme your theme might differ, but should be similar. I found the right blocks to delete by enabled in the admin store -> configuration -> advanced -> developer -> debug -> enable hints and add block names to hints



                I edited the /var/www/magento2/vendor/magento/theme-frontend-luma/Magento_Customer/layout/default.xml



                and changed



                <move element="register-link" destination="header.links"/>


                to



                <move element="register-link" destination="delete"/>


                and added the following



                <referenceBlock name="customer" remove="true" />
                <referenceBlock name="authorization-link-login" remove="true" />


                this takes care of it on the main page



                I have added this to my /etc/http/conf.d/ssl.conf to drop all external connections to the signup for customers page



                <LocationMatch "/customer/account/">
                Order Deny,Allow
                Deny from All
                Allow from 192.168.100.0/24
                </LocationMatch>


                I also have removed the newsletter, review, rss, sendfriend, and wishlist because I think they link back to the customer account pages



                It would be really swell if the developers could disconnect the customer module from the shopping basket module, so I could just disable the customer side if I wanted any other above features, but I don't, so I don't care. I try to remove any boxes for someone to drop code in, regardless of whether there is a known attack vector or not. Call me paranoid I have no need at the moment for customer accounts or any of the things I disabled and my shopping basket ships off straight to a paypal checkout so there is no input on my end (I really don't want to be responsible for customer credentials and cc #s at this point).






                share|improve this answer




























                  0












                  0








                  0







                  This is how i did it.
                  I am using the luma theme your theme might differ, but should be similar. I found the right blocks to delete by enabled in the admin store -> configuration -> advanced -> developer -> debug -> enable hints and add block names to hints



                  I edited the /var/www/magento2/vendor/magento/theme-frontend-luma/Magento_Customer/layout/default.xml



                  and changed



                  <move element="register-link" destination="header.links"/>


                  to



                  <move element="register-link" destination="delete"/>


                  and added the following



                  <referenceBlock name="customer" remove="true" />
                  <referenceBlock name="authorization-link-login" remove="true" />


                  this takes care of it on the main page



                  I have added this to my /etc/http/conf.d/ssl.conf to drop all external connections to the signup for customers page



                  <LocationMatch "/customer/account/">
                  Order Deny,Allow
                  Deny from All
                  Allow from 192.168.100.0/24
                  </LocationMatch>


                  I also have removed the newsletter, review, rss, sendfriend, and wishlist because I think they link back to the customer account pages



                  It would be really swell if the developers could disconnect the customer module from the shopping basket module, so I could just disable the customer side if I wanted any other above features, but I don't, so I don't care. I try to remove any boxes for someone to drop code in, regardless of whether there is a known attack vector or not. Call me paranoid I have no need at the moment for customer accounts or any of the things I disabled and my shopping basket ships off straight to a paypal checkout so there is no input on my end (I really don't want to be responsible for customer credentials and cc #s at this point).






                  share|improve this answer















                  This is how i did it.
                  I am using the luma theme your theme might differ, but should be similar. I found the right blocks to delete by enabled in the admin store -> configuration -> advanced -> developer -> debug -> enable hints and add block names to hints



                  I edited the /var/www/magento2/vendor/magento/theme-frontend-luma/Magento_Customer/layout/default.xml



                  and changed



                  <move element="register-link" destination="header.links"/>


                  to



                  <move element="register-link" destination="delete"/>


                  and added the following



                  <referenceBlock name="customer" remove="true" />
                  <referenceBlock name="authorization-link-login" remove="true" />


                  this takes care of it on the main page



                  I have added this to my /etc/http/conf.d/ssl.conf to drop all external connections to the signup for customers page



                  <LocationMatch "/customer/account/">
                  Order Deny,Allow
                  Deny from All
                  Allow from 192.168.100.0/24
                  </LocationMatch>


                  I also have removed the newsletter, review, rss, sendfriend, and wishlist because I think they link back to the customer account pages



                  It would be really swell if the developers could disconnect the customer module from the shopping basket module, so I could just disable the customer side if I wanted any other above features, but I don't, so I don't care. I try to remove any boxes for someone to drop code in, regardless of whether there is a known attack vector or not. Call me paranoid I have no need at the moment for customer accounts or any of the things I disabled and my shopping basket ships off straight to a paypal checkout so there is no input on my end (I really don't want to be responsible for customer credentials and cc #s at this point).







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Dec 22 '16 at 9:12









                  Manashvi Birla

                  6,15241840




                  6,15241840










                  answered May 23 '16 at 9:36









                  ChrisChris

                  3619




                  3619























                      0














                      Editing the templates files and redirecting through server is a nice hack.



                      Here is an interesting module, just tested, it is fully working :
                      https://github.com/deved-it/magento2-disable-customer-registration



                      It disable only the 'Create an account' function, and redirect on accessing direct link : /customer/account/create/






                      share|improve this answer




























                        0














                        Editing the templates files and redirecting through server is a nice hack.



                        Here is an interesting module, just tested, it is fully working :
                        https://github.com/deved-it/magento2-disable-customer-registration



                        It disable only the 'Create an account' function, and redirect on accessing direct link : /customer/account/create/






                        share|improve this answer


























                          0












                          0








                          0







                          Editing the templates files and redirecting through server is a nice hack.



                          Here is an interesting module, just tested, it is fully working :
                          https://github.com/deved-it/magento2-disable-customer-registration



                          It disable only the 'Create an account' function, and redirect on accessing direct link : /customer/account/create/






                          share|improve this answer













                          Editing the templates files and redirecting through server is a nice hack.



                          Here is an interesting module, just tested, it is fully working :
                          https://github.com/deved-it/magento2-disable-customer-registration



                          It disable only the 'Create an account' function, and redirect on accessing direct link : /customer/account/create/







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Feb 22 '17 at 16:48









                          DependencyHellDependencyHell

                          659320




                          659320






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Magento Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f113948%2fhow-to-disable-customer-accounts-sign-in-without-breaking-the-shopping-cart-in-m%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              An IMO inspired problem

                              Management

                              Has there ever been an instance of an active nuclear power plant within or near a war zone?