1

目前,我的电子邮件订单显示了产品页面上的所有属性。但是,我只想显示一些属性,例如颜色和交付。

/templates/emails/email-order-items.php 

这是代码...我需要做哪些更改?

// Variation
        if ( $item_meta->meta ) {
            echo '<br/><small>' . nl2br( $item_meta->display( true, true ) ) . '</small>';
        }
4

1 回答 1

2
// Variation
    if ( $item_meta->meta ) {
        echo '<br/><small>' . nl2br( $_product->get_attribute( 'delivery' ) ) . '</small>';
    }

这段代码就像一个魅力!哇,感谢我自己 B-)...

于 2015-01-05T17:53:52.780 回答