Y
Y
yarovikov2019-04-29 18:16:53
WooCommerce
yarovikov, 2019-04-29 18:16:53

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:
5cc714fd6b688229448561.png
In the checkout, everything is beautiful, but on order-pay this amount is no longer there:
5cc715622d91a764176163.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WP Panda, 2019-04-29
@weart

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 question

Ask a Question

731 491 924 answers to any question