Skip to content

Commit

Permalink
Merge branch 'WP-133' into 'main'
Browse files Browse the repository at this point in the history
fix: get total return the price of the item times the quantity, get the price for each item

See merge request ecommerce_modules/cms/wordpress/wordpress!56
  • Loading branch information
DEMAxx committed Dec 28, 2024
2 parents 7167295 + ebd5dd7 commit de880cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Actions/OrderCreateAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ function_exists('wcml_get_woocommerce_currency_option') ? $this->order->currency
$shouldConvert,
);

$cost /= $qty;

if ($shouldPay !== null) {
if ($shouldPay !== 0) {
$paymentValue = (int)(($shouldPay / 100) * $cost);
Expand Down

0 comments on commit de880cd

Please sign in to comment.