How to disable link in telephone phone number in address book?
-
15-01-2021 - |
Soluzione
You can change it easily from backend
Admin > STORES > Configuration > CUSTOMERS > Customer configuration > Address Templates > HTML
Replace HTML field content line with below
{{depend telephone}}T: <a href="tel:{{var telephone}}">{{var telephone}}</a>{{/depend}}
to
{{depend telephone}}T: <span>{{var telephone}}</span>{{/depend}}
save and flush cache you will see your desired result in admin order view page.
For Frontend Shipping address section you need to rewrite below template in your theme
vendor/magento/module-checkout/view/frontend/web/template/shipping-address/address-renderer/default.html
Add above default.html file to below location
app/design/frontend/VendoreName/ThemeName/Magento_Checkout/view/frontend/web/template/shipping-address/address-renderer/default.html
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange