Hey @joelataylorInteresting. We'll discuss this and see if we can shine any light on things.

Are you saying that your custom endpoint is calling the api_json, to get the live rates from Foxy? If so… hrm… I wonder if you could pass an extra parameter through so your custom endpoint doesn't re-request api_json if it's not needed, thus ending the loop.

(Fwiw, our next improvement to the shipping will be allowing a custom endpoint that gets passed the shipping rates as configured in the store. Not here yet though.)

Hey Brett - yeh, I figured what I was doing was a lil "hacky" - in that I'm curling FC to get live FedEx rates on products in a specific category. In fact, I don't think it's going to work (at least the way I'm doing it) because I don't know the fcsid outside of Javascript.

My only solution now is to use a mix of the Custom Shipping method + Javascript overrides.

Or, I go find my own connection to FedEx (which I REALLY don't want to do).

We have the FC category setup for Flat Fee shipping at $0 for the products we have a custom calculation for. Our custom calculation takes into account the quantity ordered and the zip it's being shipped to.

The other products have the FC Category setup for FedEx Live Shipping - that's how we're able to let FedEx only calculate the appropriate shipping rate.

@joelataylor - that does help, but I think it might be worth us seeing your store set up for better clarification here. Could you confirm (and feel free to whisper if you'd prefer to keep it private) the store you're working with and have the custom shipping script included on?

Thanks for whispering. I think there is a way to achieve what you're after here without needing to do a custom integration with FedEx.

To confirm with you about my earlier question - I understand that if you have only chairs, you calculate the shipping as a tiered flat rate, and if you have only accessories, then you use live FedEx results. If both are present though - could you clarify exactly what result you're after? Would it be just a single custom rate, with the total made up of the calculated custom rate, and then one of the returned live rates? If so - which live rate would you use? Or would you display all of the possible FedEx rates, but just increase them by the calculated rate?

Thanks for whispering those details (sorry for the issue posting yesterday).

If I'm understanding your custom code you whispered previously, I think you can actually just update the javascript snippet to make this work. You're currently performing an AJAX request to get the rates again, in order to get the FedEx rate - but with how the live rate snippet works, that's actually just happened. You can then just get the FedEx rates returned from the JSON object. A quick change to the calculateAccessoryRate() function like this I believe will achieve what you're after?