Skip to content

Commit

Permalink
Fixes issue iyzico#39
Browse files Browse the repository at this point in the history
  • Loading branch information
oralunal committed Dec 8, 2024
1 parent 8635170 commit af3b08c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/admin/index.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/blocks/woocommerce/blocks.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion includes/Common/Helpers/DataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ protected function createBasket( WC_Order $order, array $cart ): array {
$shippingItem->setName( 'Shipping' );
$shippingItem->setCategory1( 'Shipping' );
$shippingItem->setItemType( BasketItemType::PHYSICAL );
$shippingPrice = strval( floatval( $order->get_shipping_total() ) + floatval( $order->get_shipping_tax() ) );
$shippingPrice = strval( round(floatval( $order->get_shipping_total() ) + floatval( $order->get_shipping_tax() ), 2) );
$shippingItem->setPrice( $shippingPrice );
$basketItems[] = $shippingItem;
}
Expand Down

0 comments on commit af3b08c

Please sign in to comment.