Welcome to the blog of Craig Edmonds
This page lists my businessey type posts, but if you want to see some of my personal bloggings, click here.
[SOLVED] Programatically Change WooCommerce Stripe Currency at Checkout without Plugin
I had a client project recently whereby they have different dealers using a single woocommerce install but each dealer would process payments with their own stripe API keys but the added challenge was that they process in different currencies. So for example, Canadian...
[SOLVED] Unbounce – Populate Drop Down(s) with URL Parameter Data
Unbounce is a great landing page creation tool but in some areas it lacks those "extra" little features desperately needed to make the end user experience comfortable and as we know, comfort leads to conversions! For example, I wanted to create a PPC campaign so that...
How to Show a Different WordPress Theme based on IP Address [SOLVED]
A colleague and I recently stumbled on a situation where we had to show one wordpress theme to the web site visitors but show a different theme to ourselves so we can develop the new theme on the live site but not showing the development theme to the web site...
MSC Meraviglia Internet Speeds [its not all bad]
I recently enjoyed a 7 day cruise around the mediterranean (from Barcelona) with MSC aboard the MSC Meraviglia, a massive, massive cruise liner, 4th largest in the world at the time of writing carrying 4,500 passengers and 1,500 crew. Obviously with running various ...
[SOLVED] WooCommerce conditional fields for gifts options on checkout
Built a web site recently using WooCommerce and decided that a gift wrapping option would be wonderful idea when user checks out. However, the WooCommerce Checkout Add-Ons plugin whilst its great, is still in its infancy and on the checkout page, it simply populates...
[SOLVED] MAMP – allowing clients to view dev sites on your local machine (with dynamic ip)
As a web developer, I like to work on web sites on my local machine and then give clients a link to the site which is hosted on my local machine so they can view progress. This save me A LOT of time syncing with remote servers as the client can view the dev site in...
[SOLVED] How to remove 2FA from WHMCS Login Page
WHMCS is great, for the most part, but last night I tried to login to my WHMCS admin panel with my google two factor auth only to be met with an error saying my 2fa code was incorrect. I even tried using the backup code and still met with an error. I raised a ticket...
[Solved] Get Array of Terms for Custom Post Type Outside of Loop with Post ID
Every stone I overturned looking for the answer to this issue I was met with "use wp_get_post_terms()" but unfortunately it does not work on custom post types. The solution, after much digging and experimenting is to use get_the_term_list() but with a couple of...
Paypal Is Expensive
I just went to convert £529.45 to Euros in my paypal account and noticed that paypal was offering the exchange rate at €1.14, when my currency ticker on my desktop is showing €1.17, a difference of 3 euro cents. So I checked xe.com and transferwise.com to compare...