2

Using magento 2.2, I want to remove link from phone number in address book. Not allow user click on number.

enter image description here

3

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

  • It work in address book. But not work with 'Shipping Address'. Prashant Valanda. – Bong Channarith Jun 18 '18 at 9:17
  • on frontend? its not working? – Prashant Valanda Jun 18 '18 at 9:22
  • On front-end. In Check Out step 'Shipping Address' still display. – Bong Channarith Jun 18 '18 at 9:25
  • @BongChannarith updated answer please check it – Prashant Valanda Jun 18 '18 at 9:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.