purefusion Posted February 16, 2007 Posted February 16, 2007 Pretty straightforward... How are default shipping methods selected, and how can I change the default? There are no options in the admin panel as far as I can tell. Thanks!
Velveeta Posted February 16, 2007 Posted February 16, 2007 Pretty straightforward... How are default shipping methods selected, and how can I change the default? There are no options in the admin panel as far as I can tell. Thanks! There's a function in the shipping class file (includes/classes/shipping.php) called cheapest that loops through the installed modules' quotes and determines what the cheapest shipping method is, then sets that as the default selected... If you wanted to change this, you'd have to comment out the line that calls the cheapest function, and substitute your own method for selection of the default... Richard. Richard Lindsey
purefusion Posted February 16, 2007 Author Posted February 16, 2007 What do I do if I just want to have no defaul, uncomment this line and have no replacement?
Velveeta Posted February 16, 2007 Posted February 16, 2007 What do I do if I just want to have no defaul, uncomment this line and have no replacement? Yep, and comment out the section within checkout_shipping.php that selects the default row (just search for defaultselected) and make them all just output normally... Richard. Richard Lindsey
Recommended Posts
Archived
This topic is now archived and is closed to further replies.