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
Recently today, I upgraded my PHP version to 7.4.4. After a few minutes, I received an e-mail that my website is offline. It says that “Your Site is Experiencing a Technical Issue”. But good thing, I have JetPack. Gone are the days when your WordPress website is down or just blank white, and you don’t… Continue reading JetPack is getting smarter and smarter
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 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
I recently updated my server to 5.3.10 and now PHP 5.4.0 has been released! The PHP said that the release is a major leap forward in the 5.x series, which includes a huge number of new features and bug fixes. They key new features of PHP 5.4 are traits, DTrace support, a shortened array syntax,… Continue reading Wow! PHP 5.4.0 has been released!
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
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
If you’re an Elegant Themes user and you’re a complete PHP noob and you want to add “All Categories” as an additional option in your featured category inside your ePanel, because by default, there are no “All Categories” option in the featured category options of Elegant Themes’ ePanel, then your search is over.