Magento-在我的帐户订单信息页面上显示自定义产品属性

Magento-在我的帐户订单信息页面上显示自定义产品属性,magento,magento-1.9,Magento,Magento 1.9,在管理中创建属性并将其分配给产品,可以在购物车页面上看到它们,如下图所示 我已经在config.xml中添加了代码,如图所示 <sales> <quote> <item> <product_attributes> <my_custom_product_attribute/> </product_attribu

在管理中创建属性并将其分配给产品,可以在购物车页面上看到它们,如下图所示

我已经在
config.xml
中添加了代码,如图所示

<sales>
         <quote>
            <item>
            <product_attributes>
                <my_custom_product_attribute/>
            </product_attributes>
            </item>
         </quote>
</sales>

下单后,如何在客户的“我的订单”页面下的“订单信息”页面上显示相同的属性

在下面的config.xml中尝试过,但我需要在客户和管理部分的订单信息、发票和退款页面中显示自定义产品属性

<global>
    ...
    <fieldsets>
        <sales_convert_quote>
            <your_special_attribute>
                <to_order>*</to_order>
            </your_special_attribute>
        </sales_convert_quote>
    </fieldsets>
    ...
    </global>

...
*
...

在orders.phtml文件上从order项目获取产品sku并获取产品属性

$product = Mage::getSingleton('core/session')->setCurrActiveProduct($skuChild); 
$product->getResource()->getAttribute('attribute_code')->getFrontend()->getValue($_product);