/** * This function take attribute id and return all detail about attribute * * @param INTEGER $att_id att_id * * @return array() of Attribute details */ public function getAttributeDetails($att_id) { $helper = new comquick2cartHelper(); $att_options = $helper->getAttributeOption($att_id); foreach ($att_options as $op) { $op->itemattribute_id = $att_id; $opdetails = $helper->getOptionCurrency($op->itemattributeoption_id); // Adding currency,price details in $att_option detail array foreach ($opdetails as $opd) { $op->{$opd}['currency'] = $opd['price']; } } return $att_options; }