[Skip to main content](#vessel-content)

#   UPS Shipping Options Not Sorted by Price

##

- **[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")**
- [![a2zcs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33209.jpg)](/forum/user/33209-a2zcs "View a2zcs's Profile")
- [ Offline](/forum/user/33209-a2zcs)

Less More

- Posts: 298
- Thank you received: 7
-
-

10 years 3 months ago [\#246630](#246630) by [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")  Replied by *[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")* on topic *[UPS Shipping Options Not Sorted by Price](/forum/28-shipping-methods/881066-ups-shipping-options-not-sorted-by-price?start=20#246630 "-- url of the page with the problem -- :   www.nicaboyne.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Chrome OSX -- Error-message(debug-mod must be tuned on) -- : N/A  Hi All,  Our UPS shipping plugin is working largely as expected. However, I notice that if the customer doesn't quality for free shipping (orders &gt; $49), the default option for UPS is Next-Day Air.  That's a very expensive shipping option and may dissuade customers from completing their order. Why is the plugin not defaulting to the cheapest option?  I am looking to the Checkout view and notice the version my client's site is using is customized (not by me). Is this where the ordering would be done and do you have a recommendation for where in 2.6.0 the shipping method details would be ordered?  Thanks!")*

Hi Mohamed,
Trying to accomplish the same thing as p3.chuck but the file shipping.php no longer has the lines that indicate where to put the code changes. How can I sort the UPS services and have the lowest price selected as default?
Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgxMDY2LXVwcy1zaGlwcGluZy1vcHRpb25zLW5vdC1zb3J0ZWQtYnktcHJpY2U/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

10 years 3 months ago [\#246646](#246646) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[UPS Shipping Options Not Sorted by Price](/forum/28-shipping-methods/881066-ups-shipping-options-not-sorted-by-price?start=20#246646 "-- url of the page with the problem -- :   www.nicaboyne.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Chrome OSX -- Error-message(debug-mod must be tuned on) -- : N/A  Hi All,  Our UPS shipping plugin is working largely as expected. However, I notice that if the customer doesn't quality for free shipping (orders &gt; $49), the default option for UPS is Next-Day Air.  That's a very expensive shipping option and may dissuade customers from completing their order. Why is the plugin not defaulting to the cheapest option?  I am looking to the Checkout view and notice the version my client's site is using is customized (not by me). Is this where the ordering would be done and do you have a recommendation for where in 2.6.0 the shipping method details would be ordered?  Thanks!")*

Hello,

I just checked it and you should still have the following line on your "shipping.php" file : Code:

uasort($usable_methods, array($this, "sortShipping"));

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgxMDY2LXVwcy1zaGlwcGluZy1vcHRpb25zLW5vdC1zb3J0ZWQtYnktcHJpY2U/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[p3.chuck](/forum/user/39719-p3-chuck "View p3.chuck's Profile")**
- [![p3.chuck's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39719-p3-chuck "View p3.chuck's Profile")
- [ Offline](/forum/user/39719-p3-chuck)

Less More

- Posts: 104
- Thank you received: 5
-
-

10 years 3 months ago [\#246699](#246699) by [p3.chuck](/forum/user/39719-p3-chuck "View p3.chuck's Profile")  Replied by *[p3.chuck](/forum/user/39719-p3-chuck "View p3.chuck's Profile")* on topic *[UPS Shipping Options Not Sorted by Price](/forum/28-shipping-methods/881066-ups-shipping-options-not-sorted-by-price?start=20#246699 "-- url of the page with the problem -- :   www.nicaboyne.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Chrome OSX -- Error-message(debug-mod must be tuned on) -- : N/A  Hi All,  Our UPS shipping plugin is working largely as expected. However, I notice that if the customer doesn't quality for free shipping (orders &gt; $49), the default option for UPS is Next-Day Air.  That's a very expensive shipping option and may dissuade customers from completing their order. Why is the plugin not defaulting to the cheapest option?  I am looking to the Checkout view and notice the version my client's site is using is customized (not by me). Is this where the ordering would be done and do you have a recommendation for where in 2.6.0 the shipping method details would be ordered?  Thanks!")*

The link is here to resolve that issue:

[ www.hikashop.com/forum/shipping-methods/...sorted-by-price.html](http://www.hikashop.com/forum/shipping-methods/881066-ups-shipping-options-not-sorted-by-price.html)

It requires changes to the ups.php file and the shipping.php files.

BE AWARE: if you see other 'fixes' for things like 'Number of Packages' being wrong that those ups.php files will undo the changes unless you manually modify the files posted in links of that nature. So be VERY careful when downloading and install 'fixes'.

It would be great if they just incorporated changes like these into the software as an option in the UPS module so you don't have to hack the core files and worry about updates blowing them up.

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgxMDY2LXVwcy1zaGlwcGluZy1vcHRpb25zLW5vdC1zb3J0ZWQtYnktcHJpY2U/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")**
- [![a2zcs's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33209.jpg)](/forum/user/33209-a2zcs "View a2zcs's Profile")
- [ Offline](/forum/user/33209-a2zcs)

Less More

- Posts: 298
- Thank you received: 7
-
-

9 years 6 months ago -  9 years 6 months ago [\#268173](#268173) by [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")  Replied by *[a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile")* on topic *[UPS Shipping Options Not Sorted by Price](/forum/28-shipping-methods/881066-ups-shipping-options-not-sorted-by-price?start=20#268173 "-- url of the page with the problem -- :   www.nicaboyne.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Chrome OSX -- Error-message(debug-mod must be tuned on) -- : N/A  Hi All,  Our UPS shipping plugin is working largely as expected. However, I notice that if the customer doesn't quality for free shipping (orders &gt; $49), the default option for UPS is Next-Day Air.  That's a very expensive shipping option and may dissuade customers from completing their order. Why is the plugin not defaulting to the cheapest option?  I am looking to the Checkout view and notice the version my client's site is using is customized (not by me). Is this where the ordering would be done and do you have a recommendation for where in 2.6.0 the shipping method details would be ordered?  Thanks!")*

Works great, thanks.

- [ ![Capture&#95;2017-04-25.JPG](/forum/attachment/37830) ](/forum/attachment/37830 "...2017-04-25.JPG") [ ](/forum/attachment/37830?download=1 "...2017-04-25.JPG")

Last edit: 9 years 6 months ago by [a2zcs](/forum/user/33209-a2zcs "View a2zcs's Profile"). Reason: At first it wasnt working, must have been due to caching. Seems good now. Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgxMDY2LXVwcy1zaGlwcGluZy1vcHRpb25zLW5vdC1zb3J0ZWQtYnktcHJpY2U/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[p3.chuck](/forum/user/39719-p3-chuck "View p3.chuck's Profile")**
- [![p3.chuck's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39719-p3-chuck "View p3.chuck's Profile")
- [ Offline](/forum/user/39719-p3-chuck)

Less More

- Posts: 104
- Thank you received: 5
-
-

8 years 11 months ago [\#283247](#283247) by [p3.chuck](/forum/user/39719-p3-chuck "View p3.chuck's Profile")  Replied by *[p3.chuck](/forum/user/39719-p3-chuck "View p3.chuck's Profile")* on topic *[UPS Shipping Options Not Sorted by Price](/forum/28-shipping-methods/881066-ups-shipping-options-not-sorted-by-price?start=20#283247 "-- url of the page with the problem -- :   www.nicaboyne.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Chrome OSX -- Error-message(debug-mod must be tuned on) -- : N/A  Hi All,  Our UPS shipping plugin is working largely as expected. However, I notice that if the customer doesn't quality for free shipping (orders &gt; $49), the default option for UPS is Next-Day Air.  That's a very expensive shipping option and may dissuade customers from completing their order. Why is the plugin not defaulting to the cheapest option?  I am looking to the Checkout view and notice the version my client's site is using is customized (not by me). Is this where the ordering would be done and do you have a recommendation for where in 2.6.0 the shipping method details would be ordered?  Thanks!")*

Is there a way to insert these changes so they are not overwritten each time a HikaShop update is installed?

It would actually be very nice if it was simply an option within HikaShop. I can't believe that we're the only company that wants to list UPS options in order and have the cheapest method selected by default.

Please advise on how I can do this so it will not be overwritten by updates as it's time that I need to do this yet again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgxMDY2LXVwcy1zaGlwcGluZy1vcHRpb25zLW5vdC1zb3J0ZWQtYnktcHJpY2U/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

8 years 11 months ago [\#283285](#283285) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[UPS Shipping Options Not Sorted by Price](/forum/28-shipping-methods/881066-ups-shipping-options-not-sorted-by-price?start=20#283285 "-- url of the page with the problem -- :   www.nicaboyne.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Chrome OSX -- Error-message(debug-mod must be tuned on) -- : N/A  Hi All,  Our UPS shipping plugin is working largely as expected. However, I notice that if the customer doesn't quality for free shipping (orders &gt; $49), the default option for UPS is Next-Day Air.  That's a very expensive shipping option and may dissuade customers from completing their order. Why is the plugin not defaulting to the cheapest option?  I am looking to the Checkout view and notice the version my client's site is using is customized (not by me). Is this where the ordering would be done and do you have a recommendation for where in 2.6.0 the shipping method details would be ordered?  Thanks!")*

Hello,

We can eventually create an UPS "sort by price" option so we'll add it on our TODO list.

> Please advise on how I can do this so it will not be overwritten by updates as it's time that I need to do this yet again.

In that case, the solution will be to directly recreate a copy of the UPS shipping plugin but with a different name, so that it won't be overwritten after every Hikashop Update.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgxMDY2LXVwcy1zaGlwcGluZy1vcHRpb25zLW5vdC1zb3J0ZWQtYnktcHJpY2U/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[p3.chuck](/forum/user/39719-p3-chuck "View p3.chuck's Profile")**
- [![p3.chuck's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39719-p3-chuck "View p3.chuck's Profile")
- [ Offline](/forum/user/39719-p3-chuck)

Less More

- Posts: 104
- Thank you received: 5
-
-

8 years 11 months ago [\#283330](#283330) by [p3.chuck](/forum/user/39719-p3-chuck "View p3.chuck's Profile")  Replied by *[p3.chuck](/forum/user/39719-p3-chuck "View p3.chuck's Profile")* on topic *[UPS Shipping Options Not Sorted by Price](/forum/28-shipping-methods/881066-ups-shipping-options-not-sorted-by-price?start=20#283330 "-- url of the page with the problem -- :   www.nicaboyne.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Chrome OSX -- Error-message(debug-mod must be tuned on) -- : N/A  Hi All,  Our UPS shipping plugin is working largely as expected. However, I notice that if the customer doesn't quality for free shipping (orders &gt; $49), the default option for UPS is Next-Day Air.  That's a very expensive shipping option and may dissuade customers from completing their order. Why is the plugin not defaulting to the cheapest option?  I am looking to the Checkout view and notice the version my client's site is using is customized (not by me). Is this where the ordering would be done and do you have a recommendation for where in 2.6.0 the shipping method details would be ordered?  Thanks!")*

By doing an overwrite, any other upgrades to the UPS Plugin would be missed.

I know that with things that are template related, you can create an override in the template that does not change the core Joomla or template. It is simply overwrites those functionalities at run time. Is there anything similar for plugins?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgxMDY2LXVwcy1zaGlwcGluZy1vcHRpb25zLW5vdC1zb3J0ZWQtYnktcHJpY2U/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

8 years 11 months ago [\#283334](#283334) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[UPS Shipping Options Not Sorted by Price](/forum/28-shipping-methods/881066-ups-shipping-options-not-sorted-by-price?start=20#283334 "-- url of the page with the problem -- :   www.nicaboyne.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Chrome OSX -- Error-message(debug-mod must be tuned on) -- : N/A  Hi All,  Our UPS shipping plugin is working largely as expected. However, I notice that if the customer doesn't quality for free shipping (orders &gt; $49), the default option for UPS is Next-Day Air.  That's a very expensive shipping option and may dissuade customers from completing their order. Why is the plugin not defaulting to the cheapest option?  I am looking to the Checkout view and notice the version my client's site is using is customized (not by me). Is this where the ordering would be done and do you have a recommendation for where in 2.6.0 the shipping method details would be ordered?  Thanks!")*

Hello,

Please note that there is an hidden HikaShop option called "sort_shipping_by_price" ; which allow to sort all shipping methods by price.
But because it's an hidden option, you have to activate it manually in the hikashop_config table, by creating a new entry for it (and use "1" for the value).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [p3.chuck](/forum/user/39719-p3-chuck "View p3.chuck's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgxMDY2LXVwcy1zaGlwcGluZy1vcHRpb25zLW5vdC1zb3J0ZWQtYnktcHJpY2U/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[p3.chuck](/forum/user/39719-p3-chuck "View p3.chuck's Profile")**
- [![p3.chuck's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39719-p3-chuck "View p3.chuck's Profile")
- [ Offline](/forum/user/39719-p3-chuck)

Less More

- Posts: 104
- Thank you received: 5
-
-

8 years 11 months ago [\#283414](#283414) by [p3.chuck](/forum/user/39719-p3-chuck "View p3.chuck's Profile")  Replied by *[p3.chuck](/forum/user/39719-p3-chuck "View p3.chuck's Profile")* on topic *[UPS Shipping Options Not Sorted by Price](/forum/28-shipping-methods/881066-ups-shipping-options-not-sorted-by-price?start=20#283414 "-- url of the page with the problem -- :   www.nicaboyne.com  -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.4.44 -- Browser(s) name and version -- : Chrome OSX -- Error-message(debug-mod must be tuned on) -- : N/A  Hi All,  Our UPS shipping plugin is working largely as expected. However, I notice that if the customer doesn't quality for free shipping (orders &gt; $49), the default option for UPS is Next-Day Air.  That's a very expensive shipping option and may dissuade customers from completing their order. Why is the plugin not defaulting to the cheapest option?  I am looking to the Checkout view and notice the version my client's site is using is customized (not by me). Is this where the ordering would be done and do you have a recommendation for where in 2.6.0 the shipping method details would be ordered?  Thanks!")*

Now that's what I'm talking about... That worked AWESOME !! It sorts as expected and picks the first item as the default. EXACTLY what I needed. Thanks again as the support for Hikashop is great....

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvODgxMDY2LXVwcy1zaGlwcGluZy1vcHRpb25zLW5vdC1zb3J0ZWQtYnktcHJpY2U/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.074 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
