SaaS Case Study: Elvenda – Dropshipping in Australia

I’m working on an Australian dropshipping platform for ecommerce businesses, Elvenda. It’s a technically interesting platform because it needs to regularly import and export thousands of products from a range of ecommerce platforms (so you can dropship with WooCommerce, Shopify, BigCommerce, and plenty of others). The product also has a robust payments engine, seamlessly making… Continue reading SaaS Case Study: Elvenda – Dropshipping in Australia

Laravel: Passing down a parameter in a route prefix/route group

Working through an issue today, I needed to pass a parameter through to sub-routes inside a route group in Laravel. It’s not very well documented, and very powerful. E.g. a signed in user can have a few apps. App with ID 3, 6, 10 etc. Anything they do, once they’ve chosen which app they’re working… Continue reading Laravel: Passing down a parameter in a route prefix/route group

Chrome: Disable Web Security

Pretty often when debugging a mobile app in a web browser, we need to disable access control allow origin, OPTIONS checks, and SSL. Creating a new Chrome shortcut on the desktop with the following flags will allow you to run Chrome without web security. Mac: open -n -a Google\ Chrome –args –disable-web-security –user-data-dir=/Users/[you]/chromedev/ Windows: “C:\Program… Continue reading Chrome: Disable Web Security

React Native: Writing a native Android module

It’s difficult to find clear, up-to-date instructions for writing a native Android module for your React Native project. I spent about half a day piecing this all together from a few sources, so here’s how it ended up. Prerequisites: React Native is installed and up and running If you used expo, you should have ejected… Continue reading React Native: Writing a native Android module

WooCommerce: To perform the requested action, WordPress needs to access your web server

Seeing this error? “WooCommerce: To perform the requested action, WordPress needs to access your web server” This permissions issue haunts me after every new WordPress install. There’s a one-liner fix that doesn’t involve 777’ing your whole server.   Here’s the magic cure: Open wp-config.php Add define( ‘FS_METHOD’, ‘direct’ ); at the end Save and close,… Continue reading WooCommerce: To perform the requested action, WordPress needs to access your web server

GuzzleClientException truncated

By default, a Guzzle error thrown in Laravel will truncate the response body. When you’re deep in an API integration, this is a productivity killer. Here’s an easy way to error log the full response body from the API. try { $response = $client->request( “POST”, $this::$resource, [ ‘json’ => $item ] ); $body = json_decode(… Continue reading GuzzleClientException truncated

Error 403 when creating WooCommerce PUT API call

Apparently, PUT requests and other types of requests fail silently on many shared hosts. I had this error across two different customers who use WooCommerce API integrations. Instead of PUT, simply use POST! As long as you supply the relevant ID, WooCommerce will know you’re making an update.   We came across this while working… Continue reading Error 403 when creating WooCommerce PUT API call