NewBudda Posted April 4, 2009 Share Posted April 4, 2009 (edited) I think the original post was under the wrong heading, so please excuse the double post. I would like to change the default shipping method. At the moment I offer 2 different ones and the wrong one is selected by default. (radio button) I found this code in the checkout_shipping.php file: <?php } else { for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) { // set the radio button to be checked if it is the method chosen $checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $shipping['id']) ? true : false); if ( ($checked == true) || ($n == 1 && $n2 == 1) ) { echo ' <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } else { echo ' <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n"; } ?> What do I need to change to get the other shipping method to be the default one? I have tried several things but only got no result, the wrong result or errors... Thank you in advance! Edited April 4, 2009 by NewBudda Quote Open Source Newsletter: PhPList Open Source Questionnaire: Lime Survey Link to comment Share on other sites More sharing options...
NewBudda Posted April 9, 2009 Author Share Posted April 9, 2009 I could really use some help on this. Any ideas? Quote Open Source Newsletter: PhPList Open Source Questionnaire: Lime Survey Link to comment Share on other sites More sharing options...
Boom Posted December 20, 2010 Share Posted December 20, 2010 I could really use some help on this. Any ideas? Did you ever figure this out? I'm struggling with the same thing. Boom Quote Link to comment Share on other sites More sharing options...
krdito Posted May 23, 2012 Share Posted May 23, 2012 I am also searching in vain for the answer to this question. Surely someone has figured it out... (!) Quote Link to comment Share on other sites More sharing options...
Fourpaws Posted May 26, 2012 Share Posted May 26, 2012 (edited) Does this post help http://www.oscommerce.com/forums/topic/286819-setchange-default-shipping-method/ Edited May 26, 2012 by Fourpaws Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.