WooCommerce,在哪里编辑订单总计
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> 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>
我需要订单量表中的增值税部分以显示为固定百分比,而不是计算出的绝对值。
因此,这部分是:
(inkl. <span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">CHF</span> 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论