Skip to content
Advertisement

Show Woocommerce taxonomy in emails

I have set up an attribute for my products “Delivery Time”. I need to display this on the single product page, in the cart&checkout table an in the order emails.

I have been sucessfull in displaying in on the single product page and in the cart/order tables with this:

JavaScript

How do I add it to the order emails, and is there even a solution for only displaying it on the single product page when the item is in stock?

Advertisement

Answer

well let’s make first the above code more simplified and keep it clean.

You can delete this one if you want only to display the attribute in Single product page only

JavaScript

Single Product

JavaScript

to display specific taxonomy in Email Order Items

JavaScript

the code above is tested and working correctly

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement