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 8
8
use Magento \Framework \Setup \SampleData \Context as SampleDataContext ;
9
9
use Magento \Framework \App \ObjectManager ;
10
10
use Magento \Config \App \Config \Type \System as SystemConfig ;
11
+ use Magento \OfflineShipping \Model \Carrier \Tablerate as CarrierTablerate ;
11
12
12
13
/**
13
14
* Class Tablerate
@@ -128,7 +129,7 @@ public function install(array $fixtures)
128
129
'dest_country_id ' => $ data ['country ' ],
129
130
'dest_region_id ' => $ regionId ,
130
131
'dest_zip ' => $ data ['zip ' ],
131
- 'condition_name ' => 'package_value ' ,
132
+ 'condition_name ' => 'package_value_with_discount ' ,
132
133
'condition_value ' => $ data ['order_subtotal ' ],
133
134
'price ' => $ data ['price ' ],
134
135
'cost ' => 0 ,
@@ -146,7 +147,9 @@ public function install(array $fixtures)
146
147
}
147
148
148
149
$ 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
+ );
150
153
$ this ->cacheTypeList ->cleanType ('config ' );
151
154
$ this ->systemConfig ->clean ();
152
155
}
You can’t perform that action at this time.
0 commit comments