Skip to content

Commit

Permalink
Fixed order value
Browse files Browse the repository at this point in the history
  • Loading branch information
TimD90 committed Oct 2, 2019
1 parent fbd96ed commit 4da5445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/wcwuunder-create.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private function wcwp_setBookingConfig($orderId ) {
$dimensions = array( null, null, null );
}

$value = intval( $order->get_total() * 100 );
$value = intval(($order->get_total() + $order->get_total_discount() - $order->get_shipping_total()) * 100);

$bookingToken = uniqid();
update_post_meta( $orderId, '_wuunder_label_booking_token', $bookingToken );
Expand Down

0 comments on commit 4da5445

Please sign in to comment.