【问题标题】:Magneto 2- remove default checkbox for same shipping and billing addressMagento 2-删除相同送货和账单地址的默认复选框
【发布时间】:2022-01-21 21:09:50
【问题描述】:

由于有很多关于相同的问题并且也有经过验证的答案,但它没有解决我的问题,我想从结帐页面上删除默认检查,我正在使用 Amasty 单页结帐 任何帮助将不胜感激。 谢谢

【问题讨论】:

  • 你可以在这里尝试这个解决方案:magento.stackexchange.com/a/236452/101754
  • @LitCommerceExpert 我也试过这个解决方案,但对我不起作用。
  • 你能分享你的代码吗?我需要知道你做了什么,这样我才能继续为你的问题找到解决方案。

标签: magento2


【解决方案1】:

覆盖:

供应商/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>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-04-05
    • 2017-07-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多