cancel
Showing results for 
Search instead for 
Did you mean: 

How to get RMA item attribute value in magento1?

How to get RMA item attribute value in magento1?

Hello everyone,

 

I have created a custom RMA item attribute from magento admin and now i want to fetch its value on frontend for a particular RMA.

DdFDZ (1).png

for example, as shown in image above Item condition is RMA item attribute. and i want to fetch its value i.e, Damaged.

So, how can i do this? Can anyone suggest me something..?

Magento Developer
Ankita Biswas
2 REPLIES 2

Re: How to get RMA item attribute value in magento1?

For Magento 1, I am giving just hint for getting Item Condition value in frontend,

I haven't tried but might be very helpful for you to reach nearer to your solutions,

$rmaId = 10; // pass your rma id
$collection = Mage::getResourceModel('enterprise_rma/item')->addAttributeToFilter('rma_entity_id',$rmaId)->addAttributeToSelect(array('reason'));

$helper     = Mage::helper('enterprise_rma/eav');
$reason = $helper->getAttributeOptionValues('reason');
foreach($collection as $item) {
    return $reason[$item->getReason()];
}

 

 

 

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: How to get RMA item attribute value in magento1?

 Hello @Rakesh Jesadiya

Thank you for your response.

I have tried this but it's not working for me.

 Charleskeith.png

I am unable to fetch values of Return/Exchange , Reason code, Item condition which are RMA item attributes.

 

Can you suggest something else?

Magento Developer
Ankita Biswas