如何在结帐时删除订单确认消息 Bigcommerce

时间:2021-02-12 07:46:45

标签: bigcommerce

谁能告诉我如何删除订单确认信息? 我正在使用 Roots 和 Stencil。

2 个答案:

答案 0 :(得分:1)

BigCommerce 没有用于编辑订单确认页面的模板。您可以尝试这种有点老套的方法 - 使用 Javascript/JQuery 来隐藏或编辑消息。 例如,

if(window.location.pathname == "/checkout/order-confirmation"){
            setInterval(function(){
                if($('.optimizedCheckout-orderSummary [data-test="cart-shipping"] [data-test="cart-price-value"]').html().toLowerCase() == 'offline'){
                    $('.optimizedCheckout-orderSummary [data-test="cart-shipping"] [data-test="cart-price-value"]').html('Charges will be added offline');
                }
            }, 1000);             
 } 

答案 1 :(得分:0)

嗨,在 checkout-en.json https://developer.bigcommerce.com/stencil-docs/localization/multi-language-checkout 中找到的文本

Bigcommerce 没有任何操作指南。

如果您知道基本代码,那么您必须将 checkout-en.json 粘贴到您的 en.json 文件中。

相关问题