olgapach Posted October 17, 2012 Posted October 17, 2012 I'll very much appreciate if someone could tell how should I change in the file checkout_shipping the line where automatically selects the cheapest shipping method. I'd like to automatically select the most expensive. I know that the line to be changed is the following but I don't know how to do it: if ( !tep_session_is_registered('shipping') || ( tep_session_is_registered('shipping') && ($shipping == false) && (tep_count_shipping_modules() > 1) ) ) $shipping = $shipping_modules->cheapest(); Thanks in advance
jcflashg Posted October 18, 2012 Posted October 18, 2012 It would be nice if you shared the solution, so other people can learn! Thanks. Jens
qq77izs Posted October 18, 2012 Posted October 18, 2012 Hello olgapach! Can you please tell me where did you made changes ? i would like to set non-automatic choice, as my customer should chose himself Expres shiping (expensive) or by zone!
pchem Posted March 12, 2013 Posted March 12, 2013 This is how I did it: In catalog/includes/classes/shipping.php at line 111 I changed: if ($rates[$i]['cost'] < $cheapest['cost']) { To: if ($rates[$i]['cost'] > $cheapest['cost']) { Just the less than "<" to greater than ">" was changed to automatically select the most expensive button.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.