This is a discussion on Shipping Options Default Radio Button within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; I have 2 options for shipping for UK customers. A standard first class and a special delivery. The radio button ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I have 2 options for shipping for UK customers. A standard first class and a special delivery. The radio button that is populated by default is the special delivery and I want it to be the other one. I've already had one customer (yes I'm actually selling now How can I change the default so the standard rather than special delivery radio button is the default? |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| Hello, Did you ever figure this one out.. I'm trying to do the same thing. Thanks, Mike |
|
#3
| ||||
| ||||
| OSC select the least expensive method by defualt? If this is the case then you would have to alter the script which builds the form. I will have to do some homework on how this works, ill report back here my findings.
__________________ Clifton Murphy CEO/CTO Hyperactive Inc. osCommerce hosting, OSCMAX hosting, osCommerce modification, and OSCMAX modification specialists! |
|
#4
| |||
| |||
| I found out where this is done. /includes/classes/shipping.php /checkout_shipping.php Basically there is a function called cheapest() in the shipping classes. If nothing is selected in checkout_shipping, it calls that function to return the cheapest options and checks that one. So I simply created a new function called most_expensive() and added that to the shipping classes. And in checkout_shipping I call most_expensive() instead of cheapest(). But thanks for the reply. |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shipping OPtions | toddw | osCMax v2 Features Discussion | 2 | 02-13-2006 02:27 PM |
| radio button help | dogmir | osCMax v2 Customization/Mods | 2 | 08-24-2005 06:46 AM |
| check out radio button help | dogmir | osCommerce 2.2 Modification Help | 0 | 08-19-2005 12:44 PM |
| Radio button madness | dcc | osCommerce 2.2 Modification Help | 0 | 09-06-2004 04:04 PM |
| Shipping Options/Individual Shipping | Anonymous | osCMax v1.7 Discussion | 0 | 04-01-2004 02:10 PM |