seank123 Posted September 10, 2004 Share Posted September 10, 2004 Apologies if this has been mentioned before, but I thought it was quite good! You know with the zones shipping module, when an order goes over the biggest weight in your table - for example '99:100.00' - ?100 for an order up to 99Kg But ?0.00 for an order of 100Kg Annoying to say the least. Simple fix: Find if ($shipping == -1) { $shipping_cost = 0; $shipping_method = MODULE_SHIPPING_REG_UNDEFINED_RATE; } else { $shipping_cost = ($shipping * $shipping_num_boxes) + constant('MODULE_SHIPPING_REG_HANDLING_' . $dest_zone); And add $error = true; after the 4shipping_method bit - eg: if ($shipping == -1) { $shipping_cost = 0; $shipping_method = MODULE_SHIPPING_REG_UNDEFINED_RATE; $error = true; } else { $shipping_cost = ($shipping * $shipping_num_boxes) + constant('MODULE_SHIPPING_REG_HANDLING_' . $dest_zone); What it does is fool the module into thinking that the customer is in the wrong country and disables the abilty to select it!! You may want to change the language file to something other than the standard warning about the country (just a simple 'sorry, not avalable on this order' would do) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.