osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Shipping Options Default Radio Button

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-14-2003, 08:38 AM
Member
 
Join Date: Sep 2003
Posts: 90
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
warrenthewindmill
Default Shipping Options Default Radio Button

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 ) who has processed an order in error because he didn't change the default to standard shipping.
How can I change the default so the standard rather than special delivery radio button is the default?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 11-04-2004, 06:24 AM
Lurker
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mikep
Default

Hello,

Did you ever figure this one out.. I'm trying to do the same thing.

Thanks,
Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-04-2004, 09:04 PM
red_fraggle's Avatar
Active Member
 
Join Date: Feb 2004
Location: wilmington, NC
Posts: 319
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
red_fraggle
Default

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 11-05-2004, 03:27 AM
Lurker
 
Join Date: Nov 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mikep
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 12:01 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax