Works fine, but slowly
-
So far the calculations appear to be correct for me, but this plugin slows down your website as the Printify API is called multiple times on the basket and checkout pages.
I’d rather not go through the faff of coding against the Printify API from scratch, so I’ve customised the get_shipping_rates function in the Printify_Shipping_API class for the plugin on my site for now. Nothing fancy – I’m saving the Printify API results in PHP session after it’s called for the first time and using that until the request (basket contents & shipping address) changes, but it dramatically reduces basket & checkout page load time. Session seemed more appropriate than object/transient storage as I imagine there won’t be a lot of crossover with people having a similar shipping address buying identical items within a short period of time. I’ve shared the code with Printify via my support ticket and suggested they implement something like this in the plugin. In the meantime, I’ve disabled auto updates for the plugin on my site and will wait to see what happens in future versions.
Happy to share my code if anyone wants it, but comes with no warranty!
Thanks,
Sam
- You must be logged in to reply to this review.