Changeset 3453175
- Timestamp:
- 02/03/2026 06:50:51 PM (2 months ago)
- Location:
- zafepay
- Files:
-
- 2 edited
-
tags/1.0.7/includes/class-wc-gateway-zafepay.php (modified) (1 diff)
-
trunk/includes/class-wc-gateway-zafepay.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
zafepay/tags/1.0.7/includes/class-wc-gateway-zafepay.php
r3453123 r3453175 132 132 $email = $email ? $email : 'no_email@zafepay.com'; 133 133 134 // Discounts: total and coupon codes 135 $discount_total = (int) number_format((float) $order->get_discount_total(), 0, ',', ''); 134 $discount_total = (int) round( 135 (float) $order->get_discount_total() + (float) $order->get_discount_tax(), 136 0 137 ); 136 138 $coupon_codes = $order->get_coupon_codes(); 137 139 138 // Shipping: total cost and method(s) 139 $shipping_total = (int) number_format((float) $order->get_shipping_total(), 0, ',', ''); 140 $shipping_total = (int) number_format((float) $order->get_shipping_total(), 0, ',', '') + (int) number_format((float) $order->get_shipping_tax(), 0, ',', ''); 140 141 $shipping_methods = array(); 141 142 foreach ($order->get_items('shipping') as $item_id => $shipping_item) { -
zafepay/trunk/includes/class-wc-gateway-zafepay.php
r3453123 r3453175 132 132 $email = $email ? $email : 'no_email@zafepay.com'; 133 133 134 // Discounts: total and coupon codes 135 $discount_total = (int) number_format((float) $order->get_discount_total(), 0, ',', ''); 134 $discount_total = (int) round( 135 (float) $order->get_discount_total() + (float) $order->get_discount_tax(), 136 0 137 ); 136 138 $coupon_codes = $order->get_coupon_codes(); 137 139 138 // Shipping: total cost and method(s) 139 $shipping_total = (int) number_format((float) $order->get_shipping_total(), 0, ',', ''); 140 $shipping_total = (int) number_format((float) $order->get_shipping_total(), 0, ',', '') + (int) number_format((float) $order->get_shipping_tax(), 0, ',', ''); 140 141 $shipping_methods = array(); 141 142 foreach ($order->get_items('shipping') as $item_id => $shipping_item) {
Note: See TracChangeset
for help on using the changeset viewer.