From fffaa2f7db1d9749aaa96f2ea20cb0cf492cc14b Mon Sep 17 00:00:00 2001 From: Michael Furtner Date: Thu, 26 Nov 2015 14:16:45 +0100 Subject: [PATCH] Added one more missing module file --- .../Config/Source/Shipping/Matrixrate.php | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 app/code/community/Webshopapps/Matrixrate/Model/Adminhtml/System/Config/Source/Shipping/Matrixrate.php 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