Add FedEx One Rate to plugin

  • Posts: 69
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
1 month 6 days ago #366344

-- HikaShop version -- : 5.1.5
-- Joomla version -- : 4.4.12
-- PHP version -- : 4.4.6
-- Browser(s) name and version -- : Firefox 136
-- Error-message(debug-mod must be tuned on) -- : none

Hey guys,

My client uses Fed Ex One Rate to get discounted shipping rates.

Can we add that to the Fed Ex plugin ?

If you've got a patch, please send as I could use it right away.

many thanks,

Dave

Please Log in or Create an account to join the conversation.

  • Posts: 83674
  • Thank you received: 13545
  • MODERATOR
1 month 5 days ago #366345

Hi,

This will require adding an extra option to the FedEx plugin.
We'll look into adding this for the next version of HikaShop, in 2 or 3 weeks.

The following user(s) said Thank You: daduts

Please Log in or Create an account to join the conversation.

  • Posts: 69
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
1 week 2 days ago #366781

Thanks Nicolas,

Sorry to be a pest on this but got a client breathing down my neck.

Any update on release to include FedEx OneRate ?

Thanks

Dave

Please Log in or Create an account to join the conversation.

  • Posts: 69
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
1 week 2 days ago #366784

Got another request from the client related to FedEx. The client ships both to commercial and residential addresses. Their web interface with FedEx has a place to select commerical or residential. Can we add checkbox aksing "Is this a Residential address?" and transmit that through the API ?

The results we get using the current FedEx plugin match when the client ships to commercial addresses.

Cheers,

Dave

Last edit: 1 week 2 days ago by daduts.

Please Log in or Create an account to join the conversation.

  • Posts: 83674
  • Thank you received: 13545
  • MODERATOR
1 week 1 day ago #366788

Hi,

We made the release last week :
www.hikashop.com/support/documentation/5...ashop-changelog.html
So, if you update your HikaShop, you'll get the extra option.

There is no option at the moment to be able to select a residential address or not. We'll look at adding this for the next version of HikaShop.

The following user(s) said Thank You: daduts

Please Log in or Create an account to join the conversation.

  • Posts: 69
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
1 week 1 day ago #366808

Thanks Nicolas.

Installed the update and....

when check the One Rate box I get a 500 error. (see attachments)

with all the same settings and OneRate unchecked I get a valid quote.


Thanks

Dave

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83674
  • Thank you received: 13545
  • MODERATOR
1 week 18 hours ago #366811

Hi,

Thanks for the details. I've made a patch for it.
I've taken the liberty to add the modifications for the residential mechanism too.
So, download the install package of the latest version of HikaShop on our website again, and install it again on your website.
This will add both patchs.
Note that for the residential mechanism, you need to enable the "address_company" field in the Display>Custom fields menu.
That way, the FedEx plugin will set the residential flag automatically based on whether the customer has filled this custom field or not in his address.

The following user(s) said Thank You: daduts

Please Log in or Create an account to join the conversation.

  • Posts: 69
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
1 week 8 hours ago #366819

Thanks Nicolas

We're now a able to test. Here's some things we've found thus far about working with OneRate....

- The plugin has a field to specify packaging type. We need to specify packaging type by product and transmit to fedex accordingly. ie.... in a single order we'll ship multiple boxes of different types....ie one order might have a small fed ex box , a large fedex box and some large items in our packaging.

- We'd like to specify FedEx 2 Day One Rate as a service type such that we get non-OneRate quotes from FedEx as well. We'll likely use three options....FedEx Ground, FedEx 2 Day OneRate and Fed Ex 2Day. (I spoke with FedEx today, currently their APi will mix and match OneRate boxes, but it won't mix and match with our packaging. They're looking to add that feature for me, so we might get it in the future. Thus why we need two 2 Day Options now)

- The commercial/residential solution you propose doesn't work for home businesses we ship to. FedEx charges higher residential rates for home businesses at residential addresses. Perhaps we could add a "Is this a Residential Address ?" checkbox ?

Thanks as always for your great support.

Dave

Please Log in or Create an account to join the conversation.

  • Posts: 83674
  • Thank you received: 13545
  • MODERATOR
6 days 18 hours ago #366820

Hi,

1. I think you can already specify packaging type by product and transmit to FedEx accordingly.
To do that, you could create different warehouses in HikaShop, one per packaging type.
Then, in each product, you can select the corresponding warehouse.
Then, you can duplicate your FedEx shipping method, and in each one select a different warehouse, and adapt the packaging type.
That way, during the checkout HikaShop will group the products by warehouse, and for each warehouse group, it will load the corresponding shipping method(s).

2. I'm not clear on what you want.
Are you talking about the "serviceType" as per i.imgur.com/NUZQnrO.png on developer.fedex.com/api/en-us/catalog/rate/v1/docs.html ?
There, it says "If no serviceType is indicated then all the applicable services and corresponding rates will be returned."
So there should be no need to specify a serviceType. That way, all possible service types will be returned.
However, supposing that reality is different from their documentation (which it shouldn't), maybe the solution would be to create two shipping method ? If you create one with the One Rate shipping service, and one without the service, both shipping methods should be able to provide rates with their specifics. Might that help ? I'm not clear.
Please understand that I've never lived or worked in the USA, and I have personally never shipped anything with FedEx, or anything close. So I'm not privy to FedEx's lingo and how their USA-specific offerings work so it's all a bit confusing to me.

3. As I said, the plugin will use the "address_company" custom field. How you use it is up to you. If you want to make it a checkbox or a dropdown instead of a input field, you can do so by editing it via the Display>Custom fields menu. You just need to make sure that the value is empty when the address is residential, and not empty if the address is not residential.
You can always create another custom address field to allow the customer to provide a name for the company and adapt the "address format" in the HikaShop configuration to use that new field value instead of address_company.

Last edit: 1 week 6 hours ago by nicolas.
The following user(s) said Thank You: daduts

Please Log in or Create an account to join the conversation.

  • Posts: 69
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
6 days 11 hours ago #366837

Thanks so much Nicolas,

That sorted most of it. Of course there is one more item....

I don't have the ability to assign Warehouses to Variants.

I searched past forum posts and it looks like that capability may have existed. Am I missing a setting some place ?


Thanks again,

Dave

Please Log in or Create an account to join the conversation.

  • Posts: 83674
  • Thank you received: 13545
  • MODERATOR
6 days 7 hours ago #366839

Hi,

There is indeed no interface to be able to assign warehouses when editing variants.
Now, the variants are stored in the hikashop_product table in the database. And that table has the "product_warehouse_id" column to store the warehouse of products. So, technically the variants also have that column available in the database.
Also, following your question, I checked the code of the shipping system and it should be able to pickup on the product_warehouse_id of variants.
So, what's left is a matter of setting the value in product_warehouse_id for each variant, either via PHPMyAdmin, or via mass actions.

We'll look at adding the interface for variants on our end for a future version of HikaShop.

The following user(s) said Thank You: daduts

Please Log in or Create an account to join the conversation.

  • Posts: 69
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
6 days 6 hours ago #366848

tested variants using db warehouse id edits....it works !

Thanks

: D

Please Log in or Create an account to join the conversation.

Time to create page: 0.086 seconds
Powered by Kunena Forum