IQComputing Alex
Forum Replies Created
-
Forum: Plugins
In reply to: [Live Rates for ShipStation] Packing Method – Pack items individuallyHello @piexxer
The core issue occurred when we moved the Shipping Calculator over to using Cart Hashes as Keys instead of Product IDs. Looking at the Upcoming Github Branch changes to see what was different between the previous version and now.
Previously, the
get_requestsby_individual()method was returning request results keyed by Product ID, as you can see on line 517 in red. We need the Cart Hash for later so that we can re-access the cart and get the quantity.In the
process_available_rate()method, which accepts the ShipStation Rate result and 1 Package result, on line 952 in red and green, is where we’re getting the actual quantity from the cart – in which we need the cart hash to do so and not the Product ID.Finally, if you’re looking to modify the Calculator Object or API we do have a hook where you may completely switch out the Shipping Calculator Class, allowing you to supplement your own ShipStation API Handler Class as well, using the
iqlrss/shipping/calculator_objectfilter hook. Using this hook you can provide an object to override the base calculator methods (as your class must inherit the base calculator class) and override theapi()method. This should allow you to add in the customizations you need without having to worry about not keeping the plugin up-to-date or feeling like you have to modify the core plugin code.I did re-work it to be much more efficient in it’s calls to avoid any unnecessary, as there are also other hidden areas to consider on this for performance, which your plugin does not if it was to be simply changed to full qty support logic, however it also calls in areas where it’s not ideal in it’s current logic, so there is room for improvements.
The plugin is Open Source and on Github. If you would like to make contributions based on your investigations, I’m sure everyone using this plugin would be grateful. Otherwise, if you would like to extrapolate further, our team could look at implementing these improvements.
https://github.com/IQComputing/live-rates-for-shipstation/
In any case we’re glad you were able to find a solution. Have a wonderful rest of your week!
Forum: Plugins
In reply to: [Live Rates for ShipStation] Packing Method – Pack items individuallyHello @piexxer
Apologies for the radio silence, but thank you for bringing this to our attention. This appears to be an issue with Individual Shipping not being able to access the cart hash and is unable to retrieve the quantity. If you’re development savvy you may be able to use the Upcoming Release to override the current version which would resolve this issue.
https://github.com/IQComputing/live-rates-for-shipstation/tree/upcoming
Otherwise, we plan to ship this with further updates to the plugin early next week. In the meantime should you have further questions you may reply back to this thread and our team will response in due time. Have a wonderful rest of your week!
Forum: Plugins
In reply to: [Live Rates for ShipStation] How to move shipping positioning?Hello,
Thanks for the feature request. While we do not have a timeline for the implementation, we will add this to our list of features.
In the meantime, you may be able to hire a local developer to implement a small development snippet to reorder the shipping package rates:
https://www.businessbloomer.com/woocommerce-sort-shipping-costs-low-high/
/**
* @snippet Sort Shipping Rates by Price - WooCommerce
* @how-to businessbloomer.com/woocommerce-customization
* @author Rodolfo Melogli, Business Bloomer
* @compatible WooCommerce 7
* @community https://businessbloomer.com/club/
*/
add_filter( 'woocommerce_package_rates', 'businessbloomer_sort_shipping_methods', 100, 2 );
function businessbloomer_sort_shipping_methods( $rates, $package ) {
if ( ! is_array( $rates ) ) return $rates;
uasort( $rates, function ( $a, $b ) {
if ( $a == $b ) return 0;
return ( $a->cost < $b->cost ) ? -1 : 1;
} );
return $rates;
// NOTE: BEFORE TESTING EMPTY YOUR CART
}This plugins shipping rates run through the same filter hooks that WooCommerce has to modify the output. The above is still a reliable solution, but again we recommend reaching out to a local developer to implement it.
Hello @piexxer
I want to clarify, we are not affiliated with ShipStation. This is a Free Plugin run by Volunteers. There is no premium option. We do not prioritize paying clients for this plugin because there is no monetary exchange happening. We have to pay for an API key just like everybody else.
Now, unfortunately an XML response is almost certainly on the ShipStation side of things. This plugin just reads from the JSON API. There is no active XML processing happening. We do not have access to ShipStation in how they process USPS responses, only what ShipStation gives back to us to process.
This does need to run through ShipStation Support. We recommend providing them access to your website, a link to this support thread, and any pertinent information to help them narrow down the issue. In the Integration Settings is a checkbox to enable logging in which full API responses can be found under WooCommerce > Status > Logs > live-rates-for-shipstation
The API responses are going to be important for how they debug the issue and determine the root cause. If they recommend any fixes or suggestions we can look at implementing those, but XML is out of scope of what this plugin features.
Forum: Plugins
In reply to: [Live Rates for ShipStation] Shipping options per productHello @theodotcom
Thanks for the clarification. Unfortunately, no immediate solution, but some of these Shipping Services do come with “flags”, things like hazardous material or fragile. We may be able to use these to flag certain products to align with certain Shipping Services that modify which rates get returned for an overall cart.
We’ll look into this a bit further with that in mind and we’ll keep you posted on what we find out.
Forum: Plugins
In reply to: [Live Rates for ShipStation] Shipping options per productHello @theodotcom
The problem that comes to mind with this kind of feature is: Which Shipping Service takes precedence if both of those products are in the cart?
WooCommerce only allows us to select 1 Shipping Service, so designating specific Shipping Services per product seems troublesome out the gate. Shipping Classes seem best suited for geographic areas than product based shipping services.
I’m open to ideas or suggestions, but I’m not sure how this could work when the checkout/cart expects rates to be returned based on the total cart instead of being individually selected per product.
Some alternative ideas which are outside the realm of this plugin:
– An add_to_cart filter to prevent conflicting products to exist in the cart together at the same time returning an error message back to the user.
– Using the woocommerce_package_rates filter to force specific shipping rates. This plugin also has a iqlrss/shipping/calculator_object filter to extend the class and override Shipping Rates which can also be used to force a specific outcome.Forum: Plugins
In reply to: [Live Rates for ShipStation] Shipping Cost Not Added To TotalHello @centuryperf !
Is this only happening on the Admin Panel when viewing the order, or are you noticing it on the frontend as well?
For the Canada / International shipping options issue, this is another one we haven’t been able to replicate. Are you able to get shipping options from ShipStation directly (using the calculator on their website, through the ShipStation account)? Could it be an issue with the set Shipping Zones?
Forum: Plugins
In reply to: [Live Rates for ShipStation] Shipping options not showing upHello @richecolocity
We have published an update to address this notice. This issue shouldn’t have affected returning shipping rates. If you update, and are still running into issues returning shipping options, could you try the ShipStation Shipping Calculator directly (From your ShipStation account, on their website) to ensure that their calculator can return rates for the specified addresses?
Forum: Plugins
In reply to: [Live Rates for ShipStation] Shipping options not showing upHello @richecolocity
I was able to replicate the issue on my end, but was also able to get returned rates at the same time. It’s not clear what the issue is but it looks like either an issue within the plugin itself or the ShipStation API. We will investigate this further on our end and publish a patch once we narrow down the cause.
In the meantime, if you have any further insight on this issue, please let us know.
Forum: Plugins
In reply to: [Live Rates for ShipStation] Shipping options not showing upHello @richecolocity
Thanks for sending this over! Looking at the logs, could you try going to WooCommerce > Settings and removing the trailing space from the end of the City field, then clear the API cache under Integration, and let us know if that changes the results during checkout? (We don’t need logs on this test unless it gives back different errors).
Forum: Plugins
In reply to: [Live Rates for ShipStation] Shipping options not showing upHello @richecolocity
Could you try clearing the cache via WooCommerce > Settings > Integration > ShipStatation > Clear API Cache
It could be a bad initial cache if the WooCommerce store settings were updated after the plugin was set up, but clearing the cache will at least give a clean slate.
If you’ve cleared the cache and it’s still not returning rates, you could enable Logging under the same Integration page, try a test checkout, then navigate to WooCommerce > Status >Logs and download the Live Rates for ShipStation.
If you want to take a look at the downloaded logs, scrub any data you deem to be sensitive, and post some of that to the public forum thread here, we’ll be able to take a look at what the API is returning.
Finally, is the U.S. state you’re shipping from considered an Outlying Island or Territory?
Forum: Plugins
In reply to: [Live Rates for ShipStation] Shipping options not showing upHello @richecolocity
Have you also set up your Shipping Zones?
This is found under WooCommerce > Shipping after which you would add Live Rates for ShipStation as a shipping method and then set up the services and packages you would need to use.
Forum: Plugins
In reply to: [Live Rates for ShipStation] No Shipping Options FoundDo you get that same error when testing this against the Shipping Calculator within ShipStation? Could this be injunction with a specific carrier?
Do you have an example of an address that should return rates but does not?
For example, we’ve tried the following and received rates from both UPS Standard and UPS Standard Intl.
1234 Canada Lane
North River
Ontario
M0X 1Z9Forum: Plugins
In reply to: [Live Rates for ShipStation] Rates to Puerto RicoHello @tsso0120
We’ll look into this issue as we may need to make an option to account for this difference between WooCommerce and ShipStation in this case.
We will add the estimated delivery days onto our feature list. ShipStation does bring that back with the API results so it is doable.
We don’t have a timeline for this, but if you stay subscribed to the thread, we’ll keep you updated when a solution is in place.
Forum: Plugins
In reply to: [Live Rates for ShipStation] No Shipping Options FoundHello @centuryperf
Apologies, this thread went under our radar, were you able to resolve this issue? We have had another user report issues with ShipStation API and Canada, but that had to do with GLS.
Are you able to replicate this issue using the calculator within ShipSatation directly?