The old version of WooCommerce used to save Product Name + (Price)
as the product name in each order meta. But now they removed the price and just kept the name.
I'm trying to get the price back in there. So far I've been using filters such as woocommerce_json_search_found_products
, woocommerce_order_item_name
, etc... to add price to the product name, but that is proving to be too much work and might not be so future proof.
My next approach is to just save the correct product name in each order meta so that it is pulled in correctly on all emails, invoices, order detail pages and so on.
Any idea how to approach this problem? Just need some guidance on which hooks to use to get to this result fastest.