File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
app/code/Magento/OfflineShippingSampleData/Model Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 88use Magento \Framework \Setup \SampleData \Context as SampleDataContext ;
99use Magento \Framework \App \ObjectManager ;
1010use Magento \Config \App \Config \Type \System as SystemConfig ;
11+ use Magento \OfflineShipping \Model \Carrier \Tablerate as CarrierTablerate ;
1112
1213/**
1314 * Class Tablerate
@@ -128,7 +129,7 @@ public function install(array $fixtures)
128129 'dest_country_id ' => $ data ['country ' ],
129130 'dest_region_id ' => $ regionId ,
130131 'dest_zip ' => $ data ['zip ' ],
131- 'condition_name ' => 'package_value ' ,
132+ 'condition_name ' => 'package_value_with_discount ' ,
132133 'condition_value ' => $ data ['order_subtotal ' ],
133134 'price ' => $ data ['price ' ],
134135 'cost ' => 0 ,
@@ -146,7 +147,9 @@ public function install(array $fixtures)
146147 }
147148
148149 $ this ->configWriter ->save ('carriers/tablerate/active ' , 1 );
149- $ this ->configWriter ->save ('carriers/tablerate/condition_name ' , 'package_value ' );
150+ $ this ->configWriter ->save (
151+ 'carriers/tablerate/condition_name ' , 'package_value_with_discount '
152+ );
150153 $ this ->cacheTypeList ->cleanType ('config ' );
151154 $ this ->systemConfig ->clean ();
152155 }
You can’t perform that action at this time.
0 commit comments