• WooCommerce 2 Step Checkout

    ,

    Right, new year (nepali), new tutorial. We’re going to be taking a dive into a custom WooCommerce Multistep Checkout. If you rather just see the code then here or here is good 😀 The Scenario: So here’s what I want to do, create a 2 – step checkout. First Step: The User Fills in their user details Second Step: The User reviews their order and completes payment. For simplicity sake, this tutorial won’t go beyond that. We won’t be covering, changing user details once they enter the second step because well that’s just too much to cover. Modifying the template:

    …Read More

  • Retina Ready Logo WordPress Hack

    Retina Ready is the new normal. With phones, screens and everything else a high DPI screen is now the new normal. WordPress makes it very easy these days, with the use of srcset for images. The one exception being , the WordPress logo. Or, to be more precise the WordPress Custom Logo. So what i did was, kind of hackish. But effective none the less. What i did was , the image needed to be displayed as 250*90 px . So I added created the logo in 2x dimensions i.e (500 * 180) px, added an image size of 250 *

    …Read More

  • WordPress Kathmandu Meetup

    Salutations one and all, Saturday the 25th of Feb 2017, mark the date. I’m very excited about this. I am collaborating with long time mentor and friend Rakesh Lawaju . See details here https://www.facebook.com/events/1807154016273998/  . We’ll be talking about Javascript templating in WordPress and I personally am hoping you guys will come and share the experience with us. The more the merrier. The event details are all on the FB link i shared this one

    …Read More

  • Digthis Filter Hooks

    https://wordpress.org/plugins/digthis-action-filters/ Ever had that feeling where you hook into and action or a filter and for some reason your code isn’t working? well 9 / 10 the reason is your hook is in a lower priority(in case of filters) and it can simply be determined by searching through the code for that particular filer? Seems, a tedious amount of time doesn’t it? I’ve created a plugin for just that reason, it lists all hooks and filters and allows you to search through them to see whats being hooked. To do this i’ve used a helper class from Query Monitor where

    …Read More

  • Remove Action Hooks and Filters defined in classes.

    In my previous post, i explained and walked through the process of removing actions from Hooks and Filters. In this post I will cover how to un-hook action and filters that have been defined in classes. Firstly lets cover the singleton class a very popular way of defining plugins in WordPress environment. A singleton class only allows one instance of a class to be created. Singleton. There are many advantage of using this, one of which is other developers can remove filters you’ve defined in your class. Here is a code example of how: The more troublesome part is when

    …Read More

  • Unhooking Actions and Filters in WordPress

    Today I want to talk to you about unhooking actions and filters in wordpress and some common problems we face. Write lets get on with it. Some starter tips. Actions have to be hooked to hooks before do_action is fired. So, the following: will not work. the action hasn’t been hooked and do_action digthis simply runs through all actions that have been hooked. The correct way is: Please do note the above are examples hoping to clarify, Normally we hook actions in plugin or themes’ functions.php file. The same logic applies to removing the action, removing the action after it

    …Read More

  • Preview E-mails for WooCommerce

    ,

    One of my first tasks as a WordPress developer was to make design changes to WooCommerce email templates and check that template. There is no default way for users to do this. To resolve that issue i’ve created this Plugin Woo Preview Emails

    …Read More

  • Getting Started With WooCommerce

    ,

    Today I’ll be covering the second part in my beginner’s WooCommerce series if you haven’t had the chance to look at the previous post. I suggest you do that here. In that post I’ve covered the general ideas behind WooCommerce. In this post I would like to write about my experiences and give a developers looking to delve into WooCommerce a head start. There’s a very good video series for WooCommerce  that covers the basics of setting up your store. For any novices out there i suggest you take the time and have a good look through these. There are a

    …Read More

  • WooCommerce: An E-commerce Solution for your WordPress site

    ,

    If you do a quick google search “woocommerce market share or e-commerce market share “, you’ll see that WooCommerce is the the second most popular e-commerce platform on the web. Then if you look look at WooCommerce market growth. You’ll see that it’s having a 103% growth in the market. Why? Well it’s directly proportional to the growth of WordPress: “The Most Popular CMS” currently on the web. But today lets not talk about the open source behemoth that is WordPress lets go in a different direction. The Woo-direction. There are many other E-commerce solutions for wordpress like Jigoshop, WP

    …Read More

  • Using Sessions in WordPress

    The WordPress platform is totally stateless and provides no support for the use of sessions outside of the cookie that keeps a user logged in. This is a very good policy and helps keep your blog light and responsive. Unfortunately there are times that a session might be convenient to hold some data between requests. My goal today is to get you on your way with sessions if you’re building plugins that require sessions, like i did when restricting access to posts based on passwords. Well if you want the code and be done with it here it is: add_action(‘init’,

    …Read More