We will be doing some site maintenance and need to take the site down for 10 minutes.

Site will go down at 19:00 UTC

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?

Started by amyleew on 29 Nov 2011, 3:25 AM · Views: 1,484

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


Play with it long enough and you will break it.
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,515
Plugin Contributions:
176

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.

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

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,515
Plugin Contributions:
176

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?

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

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,515
Plugin Contributions:
176

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.

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

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