Question 1 :
I would like to get some order information.
I have searched a lot but did not get any results.
These 2 sources are almost complete, But the information I want from the order was not included.
How to get WooCommerce order details
https://www.businessbloomer.com/woocommerce-easily-get-order-info-total-items-etc-from-order-object/
I want this information from the order : regular price - sale price (Order registration time).
Question 2 :
If it is a on sale product, Subtotal considers the sum of on sales, I want the total of the regular price to be calculated in the subtotal, that's mean : Subtotal = regular price * quantity
I searched many sources but no results were found, how can I change the calculation of the subtotal, if it is hook please let me know
please guide me