Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Default Shipping Method


xaze

Recommended Posts

Posted

In checkout_shipping.php I have the following code:

 

if ( ($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $shipping['id'])) { // Modification: Did have || (tep_count_shipping_modules() == (int)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";

           }

 

Which highlights whatever $shipping['id'] is set to... Unfortunately, I do not know how to set the default shipping ID... Could anyone help me out with this? (As it stands, UPS Next Day Air Saver is selected on default).

 

Thanks for your help

Posted

go to catalog, shipping, turn on and off what you want, not cpanel

Posted

Sorry, I am not following you very well... Let me restate what I am trying to do.

 

I want to change $shipping['id'] to a default method (such as UPS ground) so that it will be automatically selected. For whatever reasons $shipping['id'] is set to UPS Next Day Air.

 

If what you proposed would do this would you please clarify?

Posted

inside your cart/catalog there are shipping options you can select, ups

usps,etc, when you bring up your cart/catalog/admination, the blue icon appears, there are different sections, to add products, check orders, etc

this is not the cpanel, go to modules, click shipping, chose you shipping

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...