Skip to content

Commit

Permalink
Emoji clear all
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaspolohov@yandex.ru authored and dimaspolohov@yandex.ru committed Feb 21, 2024
1 parent 15fd670 commit 3c819a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/Gateways/ReepayGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -1389,7 +1389,7 @@ public function get_order_items( WC_Order $order, $only_not_settled = false ): a
if ( $order_item->get_product() && wcr_is_subscription_product( $order_item->get_product() ) ) {
$fee = $order_item->get_product()->get_meta( '_reepay_subscription_fee' );
if ( ! empty( $fee ) && ! empty( $fee['enabled'] ) && 'yes' === $fee['enabled'] ) {
$setup_fees[] = $order_item->get_product()->get_name() . ' - ' . $fee['text'];
$setup_fees[] = rp_clear_ordertext($order_item->get_product()->get_name()) . ' - ' . $fee['text'];
}
$sub_amount_discount += floatval( $order_item->get_meta( '_line_discount' ) );
continue;
Expand Down
2 changes: 1 addition & 1 deletion includes/OrderFlow/OrderCapture.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public function get_item_data( WC_Order_Item $order_item, WC_Order $order ): arr
$unit_price = round( ( $prices_incl_tax ? $price['with_tax'] : $price['original'] ) / $order_item->get_quantity(), 2 );

return array(
'ordertext' => $order_item->get_name(),
'ordertext' => rp_clear_ordertext($order_item->get_name()),
'quantity' => $order_item->get_quantity(),
'amount' => rp_prepare_amount( $unit_price, $order->get_currency() ),
'vat' => round( $tax_percent / 100, 2 ),
Expand Down

0 comments on commit 3c819a8

Please sign in to comment.