добавить плату с помощью PHP в смотре-order.php:WooCommerce - установить стоимость до оплаты
<?php
global $woocommerce;
$total = number_format($woocommerce->cart->total, 2, '.', ' ');
$total = (float) number_format($total, 2, '.', ' ') + (float) number_format($vvk, 2, '.', ' ');
$total = number_format($total, 2, ',', ' ');
?>
<tr class="order-total">
<th><?php _e('Total', 'woocommerce'); ?></th>
<td data-title="<?php _e('Total', 'woocommerce'); ?>">
<?php echo "<strong><span class=\"amount\">€".$total."</span></strong>"; ?>
</td>
</tr>
Теперь мне нужно обновить общую цену до оплаты.
Любые идеи? Благодарю.
Ааааа, ок спасибо, что это лучший способ: D – Fiete