How to Disable Customer Accounts/Sign In Without Breaking the Shopping Cart in Magento 2.0.4?
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
add a comment |
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
add a comment |
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
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
magento2 customer-account shopping-cart
asked May 4 '16 at 13:06
ChrisChris
3619
3619
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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.
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
add a comment |
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).
add a comment |
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/
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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).
add a comment |
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).
add a comment |
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).
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).
edited Dec 22 '16 at 9:12
Manashvi Birla
6,15241840
6,15241840
answered May 23 '16 at 9:36
ChrisChris
3619
3619
add a comment |
add a comment |
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/
add a comment |
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/
add a comment |
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/
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/
answered Feb 22 '17 at 16:48
DependencyHellDependencyHell
659320
659320
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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