Forums / Addon Shipping Modules / Default Shipping Selection

Default Shipping Selection

Locked

Started by seanscully on 26 Jun 2006, 3:24 PM · Views: 3,683

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
26 Jun 2006, 3:24 PM
#1
seanscully avatar

seanscully

Zen Follower

Join Date:
Apr 2006
Location:
Largo, Florida USA
Posts:
99
Plugin Contributions:
0

Default Shipping Selection

In Step 1 of 3 during checkout, how do I make my UPS the default shipping selection, I have 4 shipping methods I setup in the SHIPPING module, and have even changed the order of these and still get my ZONE RATES as the default selection. Now my customers leave that selection when checking out since it reads $0.00 and they did not select the items that specify ZONE RATES shipping only. I would like to make the UPS the default method.
Thanks
Sean

3 Aug 2006, 8:39 PM
#2
yahaira avatar

yahaira

New Zenner

Join Date:
Feb 2006
Posts:
77
Plugin Contributions:
0

Re: Default Shipping Selection

did you ever figure this out?

I have the same problem

3 Aug 2006, 9:03 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Default Shipping Selection

It is auto-selecting the least-expensive shipping method.

You can turn that off by editing your /includes/modules/pages/checkout_shipping/header_php.php
around line 167 you have this:```php
if ( !$_SESSION['shipping'] || ( $_SESSION['shipping'] && ($_SESSION['shipping'] == false) && (zen_count_shipping_modules() > 1) ) ) $_SESSION['shipping'] = $shipping_modules->cheapest();

Now it won't calculate the cheapest option anymore, and will require that the customer actually makes a choice.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Aug 2006, 6:32 PM
#4
yahaira avatar

yahaira

New Zenner

Join Date:
Feb 2006
Posts:
77
Plugin Contributions:
0

Re: Default Shipping Selection

Thank you Dr Byte! That worked perfectly!

10 Jul 2007, 11:36 PM
#5
colisasota avatar

colisasota

New Zenner

Join Date:
Jul 2005
Posts:
6
Plugin Contributions:
0

Re: Default Shipping Selection

I have the same problem as this, I commented out the line suggested by Dr Byte but it's still doing it. It's not actually selecting the cheapest option though, it is selecting the 2nd cheapest.

Ideally I would like it to select the top option by default (or to choose a default option myself), but happy if nothing is selected by default. Any suggestions?

11 Jul 2007, 12:15 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Default Shipping Selection

Actually it is selecting the last one it is allowed to select as Store Pickup is designed not to be a default ...

Change the order of your Shipping modules by number by 10s and you will probably find it still is selecting the second from the last ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

11 Jul 2007, 4:30 AM
#7
colisasota avatar

colisasota

New Zenner

Join Date:
Jul 2005
Posts:
6
Plugin Contributions:
0

Re: Default Shipping Selection

Thanks for your suggestion, it is actually working now (ie not selecting any options), don't know why it wasn't before. Yes I did refresh lol.