Answer the question
In order to leave comments, you need to log in
How to change/transfer/show another amount for payment?
Hi all. Something I can't get over.
Is it possible to change WC()->cart->total and show the amount (prepayment) directly at the order-pay point and send it to the payment?
Now I have it in the cart itself:
In the checkout, everything is beautiful, but on order-pay this amount is no longer there:
Answer the question
In order to leave comments, you need to log in
In gateways, the payment amount usually turns out like this,
respectively, you have 2 options
1. Change the payment gateway
2. Change the order before payment, and when the answer arrives, return the
hooks to the backside, see here https://github.com/woocommerce/woocommerce/blob/bf. ..
This is if on the fingers, there are nuances there, but I think you'll figure it out
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question