W
W
WebforSelf2021-03-18 10:43:35
WordPress
WebforSelf, 2021-03-18 10:43:35

How to separate the quantity of goods and the amount in the woocomerce personal account?

Initially, in Woo we have the output of goods and the amount is
1,500 rubles. for 2 units (example)

6053044120650163653287.png

And you need to display it like this, divide and display separately the number of goods and the amount

In the template, I see that the output is formed like this

<?php elseif ( 'order-total' === $column_id ) : ?>
                <?php
                /* translators: 1: formatted order total 2: total order items */
                echo wp_kses_post( sprintf( _n( '%1$s for %2$s item', '%1$s for %2$s items', $item_count, 'woocommerce' ), $order->get_formatted_order_total(), $item_count ) );
                ?>


How can I separate them so that they can be displayed in a separate field order_total and item_count with the postscript product (s)

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