Szé*_*más 1 php wordpress wordpress-theming woocommerce
I'm looking for a way to display a price suffix in the WooCommerce emails. Like: ex.VAT
Is there a short snippet to do this?
小智 6
复制找到的文件
\nwp-content/plugins/woocommerce/templates/emails/email-order-items.php -> wp-content/themes/your-theme/woocommerce/emails/email-order-items.php\n
Run Code Online (Sandbox Code Playgroud)\n进入您的 store\xe2\x80\x99s 子主题。
\n请注意,如果您自定义父主题而不是子主题,任何更改都将被主题更新覆盖。
\n更改 wp-content/themes/your-theme/woocommerce/emails/email-order-items.php 中的代码
\n前
\n<td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>; vertical-align:middle; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;">\n <?php echo wp_kses_post( $order->get_formatted_line_subtotal( $item ) ); ?>\n</td>\n
Run Code Online (Sandbox Code Playgroud)\n后
\n<td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>; vertical-align:middle; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;">\n <?php echo wp_kses_post( $order->get_formatted_line_subtotal( $item ) ); ?> ex. VAT\n</td>\n
Run Code Online (Sandbox Code Playgroud)\n
归档时间: |
|
查看次数: |
434 次 |
最近记录: |