<?php } ?> <input type='submit' name='submit' class="button-primary" style='width: 60px;' value='<?php _e('Save', 'cart66'); ?> ' /> </td> </tr> </tbody> </table> <br /> </form> <?php $methods = $method->getModels("where code IS NULL or code = ''", 'order by default_rate'); if (count($methods)) { ?> <table class="widefat" style='width: 600px;'> <thead> <tr> <th><?php _e('Shipping Method', 'cart66'); ?> </th> <th><?php _e('Default rate', 'cart66'); ?> </th> <th><?php _e('Default bundle rate', 'cart66');
protected function _setDefaultShippingMethodId() { // Set default shipping method to the cheapest method $method = new Cart66ShippingMethod(); $methods = $method->getModels("where code IS NULL or code = ''", 'order by default_rate asc'); if (is_array($methods) && count($methods) && is_object($methods[0]) && get_class($methods[0]) == 'Cart66ShippingMethod') { $this->_shippingMethodId = $methods[0]->id; if (Cart66Setting::getValue('require_shipping_validation')) { $this->_shippingMethodId = 'select'; } } }