————–
As long as the order includes a discount of 50. For the same product, if I buy two items at a unit price of 100, which shortcode should I use to output “this product was purchased in two units for a total of 200”? Or how should I customize it?
My billing_state in the actual order data is listed as “TAOYUAN CITY.” However, I need it to be converted to the local equivalent, such as “桃園市,” through $states = WC()->countries->get_states(‘TW’);. Could you advise on how to write this code for the invoice?