<tr> <td><?php _e('All Classes', 'makery'); ?> </td> <td> <div class="field-wrap"> <input type="text" name="flat_rate_default_cost" value="<?php echo ThemexWoo::formatPrice(themex_value('default_cost', $shipping['flat_rate'], '0')); ?> " /> </div> </td> </tr> <?php $classes = ThemexWoo::getShippingClasses(); $costs = themex_array('costs', $shipping['flat_rate']); foreach ($classes as $index => $class) { ?> <tr> <td><?php echo $class->name; ?> </td> <td> <div class="field-wrap"> <input type="text" name="flat_rate_cost[<?php echo $index; ?> ]" value="<?php echo ThemexWoo::formatPrice(themex_value($class->slug, $costs, '0'));