Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Setting default shipping method?

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 02-21-2015, 09:01 PM
 
Hanypa Hanypa is offline
 

Member
  
Join Date: Feb 2015
Location: West Allis, WI
Posts: 25
 

Default [Solved] Setting default shipping method XC5?

I have multiple shipping methods and carriers (3 custom, 2 Fedex, and 10 U.S.P.S.) I would like all orders to default to my custom methods in their set priority. It seems that currently my shipping default is random. Sometimes it defaults to Fedex, sometimes USPS, or my custom methods.

Thanks,
Hany
__________________
X-Cart 4.6.4 Gold Plus
X-Cart 5.2.4 Free
Reply With Quote
  #2  
Old 02-22-2015, 12:45 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Setting default shipping method?

Hany, it is related to the position that the methods have assigned. I have played with this before and I agree it is confusing and difficult to work with. But I have been able to achieve what you are describing.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 02-22-2015, 01:57 PM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: Setting default shipping method?

That's quite important, because either the seller may have a preferred carrier, or it may show a less desirable option to the customer and force them away
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #4  
Old 02-22-2015, 07:54 PM
 
Hanypa Hanypa is offline
 

Member
  
Join Date: Feb 2015
Location: West Allis, WI
Posts: 25
 

Default Re: Setting default shipping method?

I figured it out for my implementation, it's actually pretty ridiculous the way X-Cart 5 handles this.

So, all the shipping methods that use the drag & drop sorting method actually have values assigned to the positions. The problem in creating a sorted hierarchy is that some of them assign the same values to the same positions. For example, the top position of the Custom shipping methods is "10". The problem is that the value of the top position of the Fedex shipping methods is also "10"! So when you have 3 Custom shipping methods in place and Fedex is returning rates for say its second shipping method you end up with the Fedex rate mixed in the middle of your custom methods, whats even more ridiculous is that shipping methods like USPS do not use the same sorting arrangement.

Here's how you make it work, setup any custom methods you may need, then install and setup all the shipping modules you plan on using. Next setup all the applicable methods for each module. Do some testing to make sure they all work as expected, turn off any you don't need, etc. now the fun starts, order your custom shipping methods first keeping note of the value of the last method. You can find out the value by hovering over the four-way arrow icon that you use to sort the methods. If you have 3 like me, the last one should have a value of "30". Now go through all of your other shipping methods and hover over the first one in the list and make note of it's value. I tested custom methods, UPS, Fedex, and USPS. I found that both Custom Methods and Fedex start at "10" and increment by 10 for each method weather they are active or not. UPS starts at "400" This is important to know! This means that UPS can never come before Fedex! USPS is different from the other methods because it starts at "700" BUT you can change the value to anything you want! This is where the ridiculousness comes in because every method should be like this! Then you'd be able to order the shipping methods as you see fit, but that's not how it currently works. Anyways back on track. So you have 3 custom methods in place in spots 1, 2, and 3. 30 being the value of you last method. Move to your second method keep in mind that your second method if it uses drag & drop has to have a value lower then any of the other that follow it. So in my case UPS can not come before Fedex because the lowest UPS value is "400", and Fedex ends at "220". For Fedex take your first active shipping method and move it to the 4th position. Doing this will assign it a value of "40" making it the first shipping method to be listed after your last custom method. sort the rest of your Fedex methods under your first active one, make note of the last active value. Now with UPS the lowest possible value is "400" this means that you can sort them top to bottom starting with your first active method in the first position giving it a value of "400". Finally USPS activate and sort them based on what you need. Keep in mind with USPS you can assign them any value, so starting at 600 made it easier for me to keep track and sort them by increments of 10 for each position, but also keep them sorted under UPS!

Hope this helps, it would be more helpful if this information found its way into the wiki!

X-Cart 5 is a wonderful product, but the lack of documentation like this makes it harder to use then it needs to be.
__________________
X-Cart 4.6.4 Gold Plus
X-Cart 5.2.4 Free
Reply With Quote

The following user thanks Hanypa for this useful post:
totaltec (02-23-2015)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020