diff --git a/app/code/community/Webshopapps/Matrixrate/Model/Adminhtml/System/Config/Source/Shipping/Matrixrate.php b/app/code/community/Webshopapps/Matrixrate/Model/Adminhtml/System/Config/Source/Shipping/Matrixrate.php new file mode 100644 index 0000000..3061484 --- /dev/null +++ b/app/code/community/Webshopapps/Matrixrate/Model/Adminhtml/System/Config/Source/Shipping/Matrixrate.php @@ -0,0 +1,42 @@ + + */ + +class Webshopapps_Matrixrate_Model_Adminhtml_System_Config_Source_Shipping_Matrixrate +{ + public function toOptionArray() + { + + $tableRate = Mage::getSingleton('matrixrate_shipping/carrier_matrixrate'); + $arr = array(); + foreach ($tableRate->getCode('condition_name') as $k=>$v) { + $arr[] = array('value'=>$k, 'label'=>$v); + } + return $arr; + } +} \ No newline at end of file