How to get/output order attribute value via PHP code in Magento 1?

Here you will find what to do if you want in Magento to get product attribute value by code. 

Please use the following code if you need to get order attribute value anywhere while using Order Attributes extension:

 

<?php $value = $order->custom('attribute_code'); ?>

 

where $order is order object, and attribute_code is a code of order attribute, created via the `Amasty: Order Attributes` extension.

See more details on Order Attributes page

User Guide

See more details on Order Attributes page

How can we help you?

Didn’t you find the answer to your question? We are always happy to help you out.

© 2009-2024 Amasty. All Rights Reserved.