Skip to main content

Posts

Showing posts from February, 2021

Create a simple Delivery Calculator

 Assalamualaikum, As previous post , i mentioned that i wanted to create a simple distance calculator for own usage. Of course i didn't do it by myself. I watched this tutorial and download the code to start coding.  And obviously i need to customize and do a little tweaks to get the result that i wanted. Plus i apply the code into Wordpress framework by extending the Child Theme What i did was, i separate the JS function from the html code. Adding the JS script and enqueued it. Steps.  Introduce JS script,  sudo vim assets/js/calculate_distance.js   script content the additional changes that i did was, adding delivery charge calculation for the front end, i create a page template that later loaded in Wordpress page, checkout my previous post the page template content the changes that i made is on the Google Places API key value, include new labels that displays the result after the user submit the form / click "Calculate" button, preset the input value for...

Create Custom Template Page in Wordpress Theme

 Assalamualaikum...     Wanted to create a simple page that can quickly get a delivery quote for my customer~    Issue with Wordpress is most of the time need to fill up the address details before getting full quotation as im using a free plugin that is not so user friendly.    While I have manual quotation request incoming to our 4nutz social medias, i decided to spin up a tool page that help to quickly calculate the pricing.   ok today wanted to share first   How to create a page template in Wordpress theme?   Reason doing so is so that we do changes in the wordpress theme or the best is the child theme. not directly apply in database the code nor hacking the wordpress framework code! that is really hard and headache to maintain!   For those who dont know how to create Child Theme, please refer to this tutorial first!   Step one, create a php page file in Wordpress Theme/ Child Theme vim page-distance-calculator.php Step two,...

The Boring SD Card Reading Issue on Ubuntu [SOLVED]

 Hi All, Sharing this as a simple solution.  Easy Peasy. First open "Disks" application... "Eject" the SD card first.. Then reinsert back the SD Card.. Wow problem solved.