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?
Best 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 hintsI edited the
/var/www/magento2/vendor/magento/theme-frontend-luma/Magento_Customer/layout/default.xml
and changed
to
and added the following
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 pageI 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).