Do it your self hobby code

kyle42

Woocommerce: How to change currency symbol programmatically

Woocommerce change currency programmatically In this tutorial, we will discuss two ways of changing currency symbol by editing the plugins or by code snippet. Either one should work. Editing Woocommerce plugin php file: The file that holds the code is: File: wc-core-functions.php Location: /[your-theme-folder]/wp-content/plugins/woocommerce/includes On line 520, you will see this: In this example, we …

Woocommerce: How to change currency symbol programmatically Read More »

How to run script continuously even when terminal is closed — Ubuntu

The simple way is to use screen. This program is commonly installed on Ubuntu server. If not installed, enter the command below to install screen: sudo apt-get install screen How to use screen? Let’s use the very simple way. Run this command: screen You will see the screen version and other information. Next, press enter. …

How to run script continuously even when terminal is closed — Ubuntu Read More »

Changing server time zone — Ubuntu

This is very important when you have some programs scheduled to run using cron. Display current timezone cat /etc/timezone Because I’m using New York timezone, this will display:America/New_York How to change the server timezone? I’d like to change the server to Dubai timezone, so I’ll enter: ln -sf /usr/share/zoneinfo/Asia/Dubai /etc/localtime To list other countries timezone …

Changing server time zone — Ubuntu Read More »