Knowledgebase
How do I set the default shipping method using the One Page Checkout? It always defaults to the first UPS method.
Posted by Nick Poindexter on 04 March 2010 05:26 PM
|
|
1. Set the desired order of your shipping methods in the X-Cart -> Shipping Methods section. The method you wish to be the default will need to have a position of 0. 2. Make the following changes to the cart.php file: Find this code: # # If current shipping is empty set it to default (first in shipping array) # After add: // Checkout One :: www.alteredcart.com // if (!$active_modules['Checkout_One']){ // End Checkout One // Find this code: $cart["delivery"]=func_query_first_cell("select shipping from $sql_tbl[shipping] where shippingid='$cart[shippingid]'"); After add: // Checkout One :: www.alteredcart.com // } // End Checkout One // | |
|
Comments (0)