The reason is the low order fee.
Normally, for payments such as Paypal, customer information and payment price are sent after pressing the "confirmation order" button in checkout confirmation.
This Stripe module sends customer information and payment price when customer press the "continue" button in Checkout payment.
Therefore, Low order fee will not be added to $order->info['total'] at checkout payment.
\www\includes\modules\payment\stripe.php Lines 150-154 Checkout payment screen"Your Total" used for the payment price.
By executing lines 150-154, Sub-total, Per Item, and Total will be displayed twice on the checkout confirmation screen, so I prevent them from being displayed twice on checkout_confirmation.
If you do not use Low order fee, the solution is simple, just modify the code below.
\www\includes\modules\payment\stripe.php 150-154
toPHP Code:
if (MODULE_ORDER_TOTAL_INSTALLED) {
$order_totals = $order_total_modules->process();
$c = count($order_totals);
$c -= 1;
$order_value = $order_totals[$c]['value'];
} else{
$order_value = $order->info['total'];
}
www\includes\templates\YOUR_TEMPLATE\templates\tpl_checkout_confirmation_default .php 158-165PHP Code:
$order_value = $order->info['total'];
toPHP Code:
/*
if (MODULE_ORDER_TOTAL_INSTALLED) {
$order_totals = $order_total_modules->process();
?>
<?php
}
*/
**If anyone has any other ideas, please let me know.**PHP Code:
if (MODULE_ORDER_TOTAL_INSTALLED) {
$order_totals = $order_total_modules->process();
?>
<div id="orderTotals"><?php $order_total_modules->output(); ?></div>
<?php
}
Nihon Yokane corporation
Bookmarks