Hide certain attributes from Woocommerce emails
-
Hi,
I have lots of attributes for my woocommerce products, but I want to hide some of them. I managed to hide them in the frontend with css but how can I do it in the emails?
I’ve tried some things in the “email-order-items.php but can’t figure it out.
foreach ( $items as $item ) : $_product = apply_filters( 'woocommerce_order_item_product', $order->get_product_from_item( $item ), $item ); $item_meta = new WC_Order_Item_Meta( $item['item_meta'], $_product );eg. an attribute (meta) I want to hide is named “pa_stroller-color”
What code do I have to add?
thanks
Johanna
The topic ‘Hide certain attributes from Woocommerce emails’ is closed to new replies.