WooCommerce,在哪里编辑订单总计

发布于 2025-02-10 18:46:05 字数 2101 浏览 0 评论 0原文

WordPress/WooCommerce在结帐页面和确认电子邮件中生成以下代码:

<tfoot>
        <tr class="cart-subtotal">
            <th>Zwischensumme</th>
            <td><span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">CHF</span>&nbsp;113,70</bdi></span></td>
        </tr>
        <tr class="woocommerce-shipping-totals shipping">
            <th>Versand</th>
            <td data-title="Versand">
                <ul id="shipping_method" class="woocommerce-shipping-methods">
                    <li><input type="hidden" name="shipping_method[0]" data-index="0" id="shipping_method_0_flat_rate1" value="flat_rate:1" class="shipping_method"><label for="shipping_method_0_flat_rate1">Vinolog: <span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">CHF</span>&nbsp;15,00</bdi></span></label>                 </li>
                </ul>
            </td>
        </tr>
        <tr class="order-total">
            <th>Gesamtsumme</th>
            <td><strong><span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">CHF</span>&nbsp;128,70</bdi></span></strong> <small class="includes_tax">(inkl. <span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">CHF</span>&nbsp;9,20</span> Mehrwertsteuer)</small></td>
        </tr>
    </tfoot>

我需要订单量表中的增值税部分以显示为固定百分比,而不是计算出的绝对值。

因此,这部分是:

(inkl. <span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">CHF</span>&nbsp;9,20</span> Mehrwertsteuer)

然后将其打印出来:

(inkl. 7.7% Mehrwertsteuer)

对我能够相应编辑的任何提示将不胜感激。

提前致谢。

Wordpress/Woocommerce generates the following code on the checkout page and in the confirmation emails:

<tfoot>
        <tr class="cart-subtotal">
            <th>Zwischensumme</th>
            <td><span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">CHF</span> 113,70</bdi></span></td>
        </tr>
        <tr class="woocommerce-shipping-totals shipping">
            <th>Versand</th>
            <td data-title="Versand">
                <ul id="shipping_method" class="woocommerce-shipping-methods">
                    <li><input type="hidden" name="shipping_method[0]" data-index="0" id="shipping_method_0_flat_rate1" value="flat_rate:1" class="shipping_method"><label for="shipping_method_0_flat_rate1">Vinolog: <span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">CHF</span> 15,00</bdi></span></label>                 </li>
                </ul>
            </td>
        </tr>
        <tr class="order-total">
            <th>Gesamtsumme</th>
            <td><strong><span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">CHF</span> 128,70</bdi></span></strong> <small class="includes_tax">(inkl. <span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">CHF</span> 9,20</span> Mehrwertsteuer)</small></td>
        </tr>
    </tfoot>

I need the VAT part in the order-total to be displayed as a fixed percentage as opposed to the calculated absolute value.

so this part:

(inkl. <span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">CHF</span> 9,20</span> Mehrwertsteuer)

would then be printed out like this:

(inkl. 7.7% Mehrwertsteuer)

Any hints on where I would be able to edit this accordingly would be greatly appreciated.

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文