Get/create the parent taxonomy by using shortcode in woocommerce?

How would I get/create the parent taxonomy by using shortcode in woocommerce?

My product categories should be like:

– Food

— Fruits

— Healthy Fruits
— Organic Fruits

— Meat

— Pork
— Lamb
— Beef

For example, I would like to display “Fruits” when user at the “Healthy Fruits” product archive page.

Go to Source
Author: Needa Hell

How to send “New Order” email to admin and manager with different email template?

How to send “New Order” email to admin and manager with different email template?

I am new with WordPress and I am just trying to send email to multiple user (admin, manager) but I want to customize the template for both the different user. I want to send email to both of them but the template should be different.

Example:

Admin should receive the email with full details(address, product with price etc) but when manager receives the email then it only includes that you have received an new order from this person, address and product name but should not include the price details on that email.

I have searched a lot regarding this but I have found the solution to include the multiple recipients but not with different templates.

Please anyone suggest me the best solution for this.

Go to Source
Author: Akshay Jain