WooCommerce 3.3

Today we released an updated version of WooCommerce. The most exciting feature for me is Greater theme support and customization. Them support is an extremely challenging problem simply because theme developers have so much freedom in how they can structure themes.

I take great joy in knowing that many new users will get to use WooCommerce with almost any them and have it working without thinking about custom code.

Kudos to all those who have contributed to this release.

Read more about the what’s new here: https://woocommerce.wordpress.com/2018/01/30/woocommerce-3-3-has-been-released/

10 things I learned from reading my 2017 journal.

Since I decided to start Journaling, I also decided that I’ll read my own Journals to keep tabs on myself. As the saying goes: “Pen and paper do not forget”.

I feel like I’ve been sleeping all the years before 2017. Feels like I haven’t done much with my life. Journaling is one way to be awakened as to never forget what I did and how I progressed.

I’m learning a lot about myself. These are the top 10 things I gathered after reading through my Journal entries in 2017.

  1. I realized how Important the art of communication is, particularly, listening.
  2. Always write slower and neater, it helps to be able to read things in future.
  3. My health routines improved dramatically.
  4. Do not Journal todo lists, they do not make sense in the future.
  5. I Must read my Journals, If you don’t you may as well stop writing. It is for self-improvement.
  6. It was a year of financial mindset shifts: zero debt, living more simplistically lastly deciding what is important and spending on that.
  7. Accountability and Routines are valuable keys to success.
  8. The words of Dave Ramsey and Jim Rohn mentored me.
  9. Hardly wrote about my walk in Christ, needs urgent attention.
  10. Having multiple, themed, journals have helped me write a lot.

I hope to continue Journaling.

Keeping a journal can change your life

I started some time ago, but it is now more focused and intentional.

I’ve always used a notebook but have recently started using the Dayone App. It allows for multiple journals in one app. So I have a journal for health, wealth my walk in Christ and even one for my son Judah.

I keep track of all my goals and my progress towards them. I write down lessons learnt and mistake I wish to avoid in future. I write some very private stuff, and also keep note of my bad habits.

When you journal you keep a record of your growth. The mind simply doesn’t track change like this. It doesn’t remember small changes over a long time. Just like when you see a friend after a long time, you can show they’ve changed, but they and the people around them don’t notice much. Reviewing the journal after some time is like visiting an old friend. You see all the changes in their life and can compare what you’ve written down.

Jim Rohn speak so powerfully about Journalling, this inspired me even more:

 

A todo list, React, Redux and the WordPress JSON REST API

I always wanted to create a very simple WordPress based Todo App. After putting it off for a very long time I finally had the time to look into it.

The Idea

The idea was a simple todo list that takes over your WP home page and relies on a standard to do post type for persistence. The interface should be driven by React using redux for state management.  The result should be WordPress plugin that simply works without any configuration. The app works over the WordPress JSON REST API and must have a very simple UI framework.

Screen Shot 2017-06-19 at 11.42.07 PM

The Parts

1.Defining the data we need to store:

  • user – name and login details. For this, I cheated and simply use the WP login interface.
  • Todo item –  with the ability to save details on a todo. For this, I use simply used a new post type. The title being the todo, the content being further information and post meta to store the state( completed/not completed )

2. Define the todo post type which we’ll use to store todo items. Each todo item relates to a post. You will notice that it’s not anything fancy but includes a few rest API configuration to make it easy for us to call posts at a later stage.

3. Setting up the JS system. I used Webpack to manage all frontend modules. I used yarn for package management and also Bable to allow me to use ES6 syntax.

4. For the UI framework, I used spectre as it is very light: https://picturepan2.github.io/spectre/

5. For user authentication, I used the user login and then relied on the WP cookie to allow the user to create todos over the REST API.

You can find the source code to play with here, it’s a wp plugin so you can install it:

https://github.com/dwainm/wpdone

I attempted this project mainly because wanted learn about all the new frontend tools. I mostly work in PHP and doing this was very refreshing. I’m inspired to do more of these. Even if no one ever needs it, I built it coz I wanted to.