Shopify Carrier Service reorder shipping options
If you use the Shopify API Carrier Service to populate your shipping by realtime to add pickup-points and other custom shipping options, you might want to re-order your shipping options in a certain way.
Loadtesting & Improving your website performance
When creating a webapplication or API it’s important to test how well your site will work under heavy load, it’s easier to prevent any problems beforehand, compared to doing it when you find out your server is getting swamped with requests.
Using papertrail logging in Slim Framework v3 with MonoLog
I was looking for a good way to group logs from different webapplications into one managable place, without too much configuration work on the different webservers, since some run on shared hosting, and some have different setups.
I came across Paper Trail App A hosted log management tool, which gives you the ability to aggegrate logs from different places into one location, and here you can filter and group different webservers together, and search the log history.
Read MoreUsing papertrail logging in Slim Framework v3 with MonoLog
Telerik platform mobile development
I have been using Telerik Platform for some time now, I was quite happy when using the trial, but since I have taken a $39 monthly developer subscription to create my mobile applications, I have had some great features gone missing 🙁
Mailchimp Security – 3 tips to keep your mailinglists safe
Mailchimp is a great and versatile web application used by lots of websites, it’s easy and secure. But correct implementation by the developer is needed to keep your subscriber data safe, with so many users using Mailchimp, it’s imporant to correctly implement mailchimp security.
Read MoreMailchimp Security – 3 tips to keep your mailinglists safe
Opencart calculate shipping distance
UPDATE 30-09-2018
Some changes have been made by google, unfortunately I can’t support 200 stores to update the extension, so in order to keep using this extension you need to update to the latest version, or follow these steps to make it work again (this might be the quickest, also if you have a customized version):
Opencart 3.0 and up
step 1. open the file catalog\model\extension\shipping\zip_distance.php
step 2. find the getgoogleurl function, and replace it with:
private function _googleUrl($params) { return array( 'url' => 'https://maps.googleapis.com/maps/api/distancematrix/json', 'query' => 'origins=' . $params['origins'] . '&destinations=' . $params['destinations'] . '&mode=driving&units=' . $params['units'] . '&sensor=false&key=' . $this->config->get('shipping_zip_distance_api_key') ); }
The changes in this function are: replaced http url with https url, added api key to the query params
Save changes, and you are done!
Opencart 2.3.0.0, 2.3.0.1, 2.3.0.2:
step 1. open the file catalog\model\extension\shipping\zip_distance.php
step 2. find the getgoogleurl function, and replace it with:
/** * Build the google url with parameters * @param array $params * @return array */ private function _googleUrl($params) { return array( 'url' => 'https://maps.googleapis.com/maps/api/distancematrix/json', 'query' => 'origins=' . $params['origins'] . '&destinations=' . $params['destinations'] . '&mode=driving&units=' . $params['units'] . '&sensor=false&key=' . $this->config->get('zip_distance_api_key') ); }
The changes in this function are: replaced http url with https url, added api key to the query params
Save changes, and you are done!
Any Lower versions
The older versions don’t have the apikey yet in the backend, so you need to do it manually:
Find the getgoogleurl function and replace http with https and at the end of the query string add &key=YOURAPIKEY
I created an extension for opencart where you can calculate the distance based on the shippingaddress or the zipcode of the customer & your shop.
Test Setup ESP2866 ESP-12 HC-SR04 on Batteries
I’m currently building a sensor based project, where a sensor needs to gather data every hour, and send it to a server, I first thought it would make sense to use an arduino board, connect a wifi shield and set the thing up.
Secure your app API
The past month I tested 3 web / mobile applications on security, and 2 of them really had some big issues. They were medium sized business apps, I have sent them detailed reports, and they have fixed the issues. I won’t discuss any further details about them, I will however list the problems I found, so you can avoid having the same problems, and keep your customer data secure.
Belkin Wemo plug & shellscript automated control
A client who uses paxton door access control for their gym wanted to have their TV switch on when a customer enters, and switch off after 1 hour. I bought a Belkin WeMo Switch and found a shellscript that can switch the wemo on and off (original script.)