Z
Z
zeaovede2022-01-15 04:59:55
WordPress
zeaovede, 2022-01-15 04:59:55

How to add total order amount for payment.php template?

You need to add the product name (for the form-checkout.php template). The total amount of the order (for the payment.php template).

I tried to take the existing code from other templates, which is responsible for the product name, the total cost from review-order.php, order-details.php. The withdrawal method did not work.

upd. It seems that I figured out the total amount of the order for payment.php. The working method was taken out of review-order.php It <?php wc_cart_totals_order_total_html(); ?>

remains to decide with the name of the product for form-checkout.php

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question