WooCommerce: Add a product to cart automatically based on another product’s variation ID

If you want to add a product to your cart based on another product’s ID or variation or a configurable product, then this code snippet might help. Was searching how to do this until I found one in Stack Overflow. The function is based on the first code example on this website post: https://www.tychesoftwares.com/how-to-automatically-add-a-product-to-your-woocommerce-cart-in-3-different-scenarios/ Basically,… Continue reading WooCommerce: Add a product to cart automatically based on another product’s variation ID

Single PHP file to send push notification via OneSignal REST API

Here’s a single php file where you can send a push notification using your OneSignal account via REST API. It’s simple and straightforward using the code example at OneSignal.com. This one is more complete as the code example is just the curl_setopt code. But what if you don’t know how to POST the code from… Continue reading Single PHP file to send push notification via OneSignal REST API

Formidable Calendar Custom Time Slots Per Hour of the Day

Formidable form building is one of the best and most extensive, fully customisable, WordPress plugin out there. You can create all types of forms you can think of. From a simple contact form, to a complex booking form, or even a full-featured user database with lots of filters and search features. But even if Formidable… Continue reading Formidable Calendar Custom Time Slots Per Hour of the Day

Worpress error on line 2 at column 6: XML declaration allowed only at the start of the document

The error on line 2 at column 6: XML declaration allowed only at the start of the document on my WordPress feed is really annoying. I spent more than 10 hours trying to fix this error myself. I’m really frustrated because I’ve tried all the solutions I found online but to no avail. I’m almost… Continue reading Worpress error on line 2 at column 6: XML declaration allowed only at the start of the document

Modify the WordPress Tag Cloud Widget Easily

There are numerous ways of how to modify the WordPress tag cloud widget, but there’s an easy way to modify it. I searched about how to modify such, and landed on different blogs sharing different methods to modify the widget. I also landed on this page which tells everyone to modify the WordPress core. But… Continue reading Modify the WordPress Tag Cloud Widget Easily