Zen Cart Logo
Forums / General Questions / How to force my custom $0 shipping module to not be default?

How to force my custom $0 shipping module to not be default?

Views: 1,462

Results 1 to 12 of 12
29 Nov 2011, 3:25 AM
#1
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

How to force my custom $0 shipping module to not be default?

I have just added an international shipping option to my store but the radio button is defaulting to it, rather than the first available option which is flat rate.

I can't work out how to change this so it automatically selects the top option. When the order is over a certain amount, free shipping option pops up as the first box and it used to select that or flat rate.

29 Nov 2011, 8:35 AM
#2
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: How to force my custom $0 shipping module to not be default?

set the sort order in admin then the one with order 1 will be at top and 10 will be on the bottom

29 Nov 2011, 10:23 AM
#3
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Re: How to force my custom $0 shipping module to not be default?

I have my sort order set like that.

The first option that should be where the radio button defaults is set at 20 and the sort order for the option where the radio button is currently defaulting to is 80.

4 Jan 2012, 9:46 PM
#4
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Re: How to force my custom $0 shipping module to not be default?

I have my sort order set like that.

The first option that should be where the radio button defaults is set at 20 and the sort order for the option where the radio button is currently defaulting to is 80.

12 Jan 2012, 10:22 PM
#5
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Re: How to force my custom $0 shipping module to not be default?

Can someone please help me with this. I don't know how to fix it seeing as the sort order all looks fine.

12 Jan 2012, 10:27 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: How to force my custom $0 shipping module to not be default?

Zen Cart auto-selects the least-expensive shipping option by default.
If your addon module isn't returning the right data then that might be causing the sort of results to be incorrect and thus creating the confusion. You'll need to fix your addon module so that it cooperates properly.

12 Jan 2012, 10:33 PM
#7
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Re: How to force my custom $0 shipping module to not be default?

That makes sense. The one it is defaulting to is $0.00 because I invoice them later.

How do I make them co-operate so it looks at the sort order rather than the dollar value?

12 Jan 2012, 10:53 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: How to force my custom $0 shipping module to not be default?

There's no built-in facility to change or disable the sort-by-cheapest.

But, is there a reason why you're not applying zones to prevent the international module from showing to non-international customers, and vice-versa?

12 Jan 2012, 11:44 PM
#9
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Re: How to force my custom $0 shipping module to not be default?

I originally tried to set it up to only appear when the customer was outside Australia but I couldn't work out how to get it to work.

I have:
flat rate postage - $6.95 (Australia)
Express post options - $8-12 (Australia)
International - $0.00 (invoiced after the fact)

I have one zone for Australia and one for International (I disabled international and made Australia all countries) because I couldn't work out if you could just choose all of the countries that aren't Australia without having to individually choose each option.

13 Jan 2012, 2:56 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: How to force my custom $0 shipping module to not be default?

I'd tackle it like this:

Make an Australia zone, but with ONLY Australia in it.
And another zone for all OTHER countries. Yes, you have to add them all individually.

Then set your shipping modules (flat rate and Express post) to use the Australia zone.
And your International module to use the International zone.

Then it'll all work as desired.

13 Jan 2012, 3:28 AM
#11
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Re: How to force my custom $0 shipping module to not be default?

Sounds easy enough. I have started and I'm up to Italy. Time for a nap!

Thanks a lot for your help. Hopefully I will get it right this time.

Amy

9 Feb 2012, 11:55 PM
#12
amyleew avatar

amyleew

Zen Follower

Join Date:
Jul 2009
Posts:
159
Plugin Contributions:
0

Re: How to force my custom $0 shipping module to not be default?

I finally got around to finishing this and it worked like a treat. Thanks for all of your help