Magento 2-删除相同送货和账单地址的默认复选框
Magneto 2- remove default checkbox for same shipping and billing address
因为有很多关于相同的问题并且也有经过验证的答案,但它没有解决我的问题,因为我想从结帐页面上删除默认检查,我正在使用 Amasty 单页结帐
任何帮助将不胜感激。
谢谢
覆盖:
vendor/magento/module-checkout/view/frontend/web/template/billing-address.html
在您的自定义主题中:
app/design/frontend///Magento_Checkout/web/template/billing-address.html
并删除:
<div class="billing-address-same-as-shipping-block field choice" data-bind="visible: canUseShippingAddress()">
<input type="checkbox" name="billing-address-same-as-shipping"
data-bind="checked: isAddressSameAsShipping, click: useShippingAddress, attr: {id: 'billing-address-same-as-shipping-' + getCode($parent)}"/>
<label data-bind="attr: {for: 'billing-address-same-as-shipping-' + getCode($parent)}"><span
data-bind="i18n: 'My billing and shipping address are the same'"></span></label>
</div>
因为有很多关于相同的问题并且也有经过验证的答案,但它没有解决我的问题,因为我想从结帐页面上删除默认检查,我正在使用 Amasty 单页结帐 任何帮助将不胜感激。 谢谢
覆盖:
vendor/magento/module-checkout/view/frontend/web/template/billing-address.html
在您的自定义主题中:
app/design/frontend///Magento_Checkout/web/template/billing-address.html
并删除:
<div class="billing-address-same-as-shipping-block field choice" data-bind="visible: canUseShippingAddress()">
<input type="checkbox" name="billing-address-same-as-shipping"
data-bind="checked: isAddressSameAsShipping, click: useShippingAddress, attr: {id: 'billing-address-same-as-shipping-' + getCode($parent)}"/>
<label data-bind="attr: {for: 'billing-address-same-as-shipping-' + getCode($parent)}"><span
data-bind="i18n: 'My billing and shipping address are the same'"></span></label>
</div>