I had a client that wanted to try MariaDB so I edited the FusionPBX install script to include MariaDB 10.5 and PHP 7.4 on Cent OS 7.
How to Install FusionPBX on CentOS 7
The current FusionPBX installation script seems to have issues with Cent OS 7, use this fix to get it installed.
403 Forbidden Errors on WordPress (Apache with Modsecurity)
Modsecurity is enabled and you’re receiving 403 forbidden errors when making edits on WordPress.
Append Tags to Shopify Products Using PHP
I’m using the code below to update hundreds of product tags in Shopify, you might be able to find an app in Shopify but this way seems quicker for me. This code was tested on API version 2020-01. PHP 7.2 + Required This code uses your terminal/command prompt to execute the php script and requires …
Sending Leads From Contact 7 Form to BigPurpleDot Using WordPress
BigPurpleDot is a powerful real estate management software for lenders & realtors. You can use their API to send leads from WordPress Contact 7 Form to their CRM platform. The Code Edit the variables below ($formId, $apiUser & $apiSecret) and place the code in your current themes functions.php. $formId – is your Contact Form Id. …
Cursor-Based Pagination Under Shopify’s Latest API
Example PHP code for cursor-based pagination using the phpclassic/php-shopify package.
Delete Duplicate Photo Albums in XCode Objective-C
I accidentally created too many photo albums with the same name, I needed a solution to delete it all without manually deleting it. There’s probably an easier way to do this if you know it let me know. NSString *albumName = @”SOME ALBUM”; __block PHAssetCollection *albumCollection = [[PHAssetCollection alloc] init]; PHFetchOptions *albumOptions = [[PHFetchOptions alloc] …
Shopify Abandon Email – Check If User Used Existing Discount Code
Solution for detecting if a user has already used a certain coupon code in shopify’s abandon email template.
Send Email Attachments With MailJet
I didn’t use the mailjet wrapper, instead I used curl to call the request. Here’s an example code to send a pdf attachment file with mailjet. I believe its similar to the code in their documentation. function sendMailjetAttachment($email = ”, $name = ”, $subject = ”, $message = ”, $file = ”) { $mailjetApiKey = …
How To Disable selectWoo If It’s Not Working In WooCommerce
I have this issue with selectWoo and WooCommerce where if you change the country the states select field doesn’t hide. I didn’t have time to debug it or find a solution so I just removed it completely by de-registering the selectWoo scripts and styles. The quick fix (place this in your themes functions.php): add_action( ‘wp_enqueue_scripts’, …