I
I
In6omnia2020-07-21 14:30:02
WordPress
In6omnia, 2020-07-21 14:30:02

How to process the total cost of a WooCommerce order?

It is necessary that after clicking on the "place an order button" the amount that turned out went through my formula.
Maybe someone did it.
If possible, a short example.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Gromel, 2020-07-30
@gromel

I made three prices for the client (retail, wholesale, opt2) from the amount in the basket.
All actions for outputting and processing data are in these files:

\themes\name\woocommerce\cart\cart.php
\themes\name\woocommerce\checkout\review-order.php
\themes\name\woocommerce\emails\email-order-items.php
\themes\name\woocommerce\order\order-details.php
\themes\name\woocommerce\order\order-details-item.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question