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.
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..?
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()]; }
Hello @Rakesh Jesadiya
Thank you for your response.
I have tried this but it's not working for me.
I am unable to fetch values of Return/Exchange , Reason code, Item condition which are RMA item attributes.
Can you suggest something else?