Please share the link of screenshot as this image is visible once approved by moderator.
Thanks!
Hello @thomas_rolland
Check out this thread issue comment
https://github.com/magento/magento2/issues/13675#issuecomment-366188920
You can override "/var/www/html/magento232/vendor/magento/module-customer/view/frontend/templates/form/register.phtml" this file in your module or in your theme and remove the fields which you don't want.
Thanks.
hi @Rahul Gupta
I selected Luma theme and Blank theme, then edited the file:
/var/www/html/magento232/vendor/magento/module-customer/view/frontend/templates/form/register.phtml
but it does not change anything, I even deleted it completely and the form is always present !
hi @theMageComp
I am not concerned by this problem (https://github.com/magento/magento2/issues/13675). The number of lines is good.
You have to override this file in your custom theme and then have to run the following commands.
php bin/magento setup:static-content:delpoy php bin/magento cache:flush
Thanks
On theme there is no overload :
I did several times:
php bin/magento setup:upgrade php bin/magento cache:flush php bin/magento setup:static-content:deploy fr_FR php bin/magento indexer:reindex php bin/magento setup:di:compile
And :
php bin/magento cache:clean rm -r pub/static/*
But there is no change.
I just understood why editing the file:
/var/www/html/*********/vendor/magento/module-customer/view/frontend/templates/form/register.phtml does not work.
This file acts on the form of the page https://www.*********.fr/customer/account/create/
And I want to change the form of the page https://www.*********.fr/checkout/#shipping
I just found the solution to remove the country. I modified the file /vendor/magento/module-checkout/view/frontend/layout/checkout_index_index.xml
Insert :
<item name="config" xsi:type="array"> <item name="visible" xsi:type="boolean">false</item>
Line 226 :
...
<item name="country_id" xsi:type="array">
<item name="config" xsi:type="array">
<item name="visible" xsi:type="boolean">false</item>
</item>
</item>
...
Now I have to find how to remove "Address: Line 1"