Limit Which Products Can Use the WooCommerce USPS Shipping Gateway

Recently a member of the Advanced WooCommerce Facebook Group asked:

“I wanted to see if it were possible to limit which products can use the Woo USPS plugin shipping…”

There is almost always an option to purchase an extension from that offers the needed functionality. In this case that extension would be WooCommerce Conditional Shipping and Payments. The benefit of using an extension like this is, it will be maintained for you by the author of the plugin.

In some cases a premium plugin offers way more code than needed and it may be worth a custom solution. I have written a quick set of functions that achieve the OP’s request:


Add this code snippets can be added to your theme / child-theme’s functions.php file.

Before adding the snippets, make sure you clear your WooCommerce cache ( WooCommerce → System Status → Tools → WC Transients → Clear transients ), as shipping methods are cached.

How to Create a New Customer When Admin Places an Order on the Frontend Checkout Form


There are many great reasons why I work with WordPress and WooCommerce. These reasons include the pleasant user experience during customer checkout. And the familiar UI for the shop manager.

Recently I was working on a WooCommerce powered booking system. The client catered to an older demographic. They often processed new bookings over the phone, and use an in office payment processor, which meant they had to enter the new booking into WooCommerce manually, and bypass the payment gateway.

After a few attempt to teach them how to use the WordPress UI, they asked me why they can not use the super simple checkout form that we created for customers. This left me with a need for them to be able to log in as admin and place an order that would be associated with a customer and not their own admin user.

This is what I came up with:

A New Way to Learn (the start of a series)


In the early summer of 2011 I had high hopes of becoming a famous blogger, though I did not know enough to use the term “blogger” yet. My subject was going to be raw milk and other alternative ideas of nutrition, medicine and exercise. If I was going to write for a website I would need a website. I secured the domain, I was so clever. Now I needed the website.

I asked my brother if he could refer a web developer. I considered my brother to be an expert. This had something to do with the fact that he had started developing websites 10 years prior at the ripe age of 12. He had moved on to the computer science department of UMASS Amherst so I was sure he was much too busy. When I asked Evan, he kindly replied “you can do it”. He had recently turned 21 so I thought “maybe he is drunk”. I tried him another few times but his answer never changed. I thought to myself, “What does Evan know that I don’t? Duh, how to build websites”.

One end of summer day I was sitting in a local coffee shop. This particular coffee shop had a “Leave a book, take a book” shelf. I glanced over and noticed an HTML5 for Dummies bright yellow book on the shelf. I could remeber that was an acronym Evan had mentioned several times when talking about website development. I humbled myself and adopted the free book as my own.

HTML5 for Dummies bookLater on that evening I sat at my 17″ mid 2010 Macbook Pro and started reading the first few pages of the book. I was instructed to create a text document (I did this is TextEdit), give it the extension .html save and open it in the browser (Safari at the time). What happened next changed my life for ever. The next step was to type the following in the text document, save and then refresh the browser:

<h1>Hello World!</h1>

WHOA!!!!! I am not completely sure why this impressed me so much. My heart sped up, my eyes grew large, and I needed MORE!

You may be wondering “What did he do next?”, It would not be crazy to think I blew through that book in less than a week. The truth is I never looked at that book again. What happened next was I started Googling. “How to make a webpage red”, “How to change the text on a webpage”, “How to include an image on my website”, “How to make a horizontal menu bar”, and on and on and on… At this stage Googling was slow. I hardly knew what HTML meant how could I Google the correct terms. However, I found answers and slowly fed my new desire.

This was the start of my learning how to build websites. I have continued to use this method (Googling) until today. I write most of my CSS and HTML from memory. This includes CSS3 and HTML5. Some examples are pseudo selectors like :nth-child() and properties like transform. More examples are HTML5 semantic elements like <header>, <nav>, <article>, etc… I have a firm hold on OOP (Object Oriented Programming) with PHP (PHP Hypertext Processor) and maximizing my front end development with Javascript. I have even written a few MySQL queries. I have leveraged the command line tool for server management and getting the most out of my Mac. I now also enjoy the security of revision control powered by git. I use the CSS preprocessor SASS particularly in the newer scss syntax. The list goes on and now I just sound like I am bragging.

The important part is, I am 100% self employed and able to support my family and I. Stay tuned and you will meet some of them as well.

The point of all this is to demonstrate the jump from summer of 2011 to now. I attended no school, I took no online courses (watched half of a video and spent a couple hours on code academy.), there was no developer bootcamps involved, I didn’t have any friends or relatives available to bounce questions off of (I told you my brother was busy. You won’t believe what he is doing now). I am a student of the search engine. Google is my professor.

In this day and age almost every person in the United States has access to the internet. Those of us that do can find the answer to ANYTHING. For the generation who has always had the internet they may take it for granted. For the generations who always got by without the internet, they might be deterred or not realize the power. Then there is my generation. I was primed and thirsty for information. Yet I had enjoyed enough conveniences that I was too lazy to go to the library. The internet was perfect. If I knew there was a connection near by I would find the computer, sit at at and try to think of something to search. I wanted to use it just because it was there. Then an internet connection was added to the phone in my pocket, BOOM!

In the series to come I will cover what happened between 2011 and now. I will share my trials and tribulations. I will document the best way to search for things without knowing their name. Maybe the “University of the Search” is not for everyone, but it was definitely for me. So bookmark, subscribe leave me open in another tab forever like I do. While you wait, go and Google “How to Google”.

Leon (twoelevenjay) contributes on Github


For those of you who don’t know, GitHub is a web-based hosting service for software development projects that use the Git revision control system. GitHub offers both paid plans for private repositories, and free accounts for open source projects.

Over the past few years Github, along with it’s 1M+ contributors has been instrumental in my ability to build websites. Over this time I lacked the knowledge and / or confidence to give back. This was until last Friday June, 27th 2014.

WebDevStudios has a public repository on Github for adding Custom Metaboxes and Fields to WordPress via themes or plugins. I first heard of this open source project via my WP518 WordPress Meetup thanks to Matthew Banks who presented on using Custom Meta Boxes and fields with WordPress (Thanks Matt, you changed my life!).

I have tried plugins like Advanced Custom fields, open sources classes like My-MetaBox-Class and also writing my own code completely. All of these methods had their pros and cons. I found myself fantasizing about writing my own class that would handle this task exactly like I wanted. When I first tried the solution from WebDevStudios, I was like whoa, someone thinks exactly like me, and yay i don’t have to write this after all.

On a recent project  I was going to be making use of the file_list custom field type. This convenient little beauty effortlessly adds a field to a post type write panel that lets you upload multiple files like images. After adding the file_liist field I noticed that once added the images were not sortable by way of drag and drop. I was sure that if I added this feature it would save me time at some point later on in life. You can only imagine how excited I was that there might be a chance that I could give back to what was so freely given to me and contribute on Github for my first time.

So after a couple of hours of testing changes to the code,  I was ready to fork, commit, and submit my very first pull request.  The following evening I received an email on my phone informing me that my pull request had been added to the master. I had such a proud moment lol. I know it is a little on the cheesy side but anything that I want to do for long enough becomes very rewarding once it happens.

For anyone that takes advantage of WebDevStudios‘s Custom Metaboxes and Fields to WordPress (and I highly recommend that you do) give the file_list field a try, then you will be sharing an important milestone with me.

A Word About Google Trusted Stores

UPDATE 08/01/2014: My Google Trusted Stores extension has been acquired by another company. If you are interested in integrating Google Trusted Stores with your WooCommerce, please contact me at leon @ this domain, or got my contact page.

Google Trusted Stores is relatively new and not a familiar thing on eccomerce sites just yet. So why use it? What makes it something that every eccomerce site should consider seriously about using? How does it work? I hope to make some sense of it right now.

Google Trusted Stores is a free certification program that was introduced by Google to help make online shopping a better experience. Having that badge on your site is a guarantee you’ll receive reliable shipping and excellent customer service. It also says that Google stands behind these stores by offering $1,000 of free purchase protection! How is that for a guarantee of a pleasurable shopping experience.
This is how it works, when the customer orders from a site that is a Google Trusted Store, you are given an option to opt into the program at the time of the purchase. To opt in is free. Once the customer opt in, they may receive a short survey to report on your experience. The opt in gives the customer the chance to help review the store and also gives them a sense of security while purchasing on the site. Google Trusted Stores is designed to empower the customer and make sure they have a positive shopping experience. This can only improve the usability and sale on the site.

The best way I can describe Google Trusted Stores is it works like when you are shopping on Ebay. The seller has a history that you can look at. If you have a problem with your order and you can’t reach the merchant you can request the help of Google. Google will work with you until the problem is resolved. Reviews are there to see what type of seller you are dealing with and if the seller isn’t doing their job they won’t be endorsed by Google Trusted Stores for long.

Google Trusted Stores can only get better. With more public awareness the customer will value the Google Trusted Stores badge and want to shop at these places more. It’s only real competitor is Amazon Prime, which is a paid service. Besides that, Google Trusted Stores can be found anywhere on the internet while Amazon Prime is only found on

Even though Google Trusted Stores hasn’t been around for that long. It has its share of success stories from its users. Customers have a better experience and sites that are Google Trusted Stores see an increase in sales. All eccommerce sites should consider signing up for Google Trusted Stores because of these reasons and if they are doing a good job they will be rewarded with good reviews. There are not many things on the internet more reliable than Google. The fact that it is free for the customer makes it more attractive than its competitors. That should only make being a Google Trusted Store that more attractive


WooCommerce is the most popular WordPress eCommerce plugin. It holds this title for a few reasons.

  1. It is available for free.
  2. It is packed full of features.
  3. It is perfectly integrated into your self-hosted WordPress website.

But why do we like WooCommerce so much that we decided to make it one of the main things we use in our business? Well thats easy. We love that cute, big headed ninja they use as their mascot!

OK, seriously. We like WooCommerce because it extends WordPress giving the only platform we use a robust shopping cart feature. WooCommerce fully respects and complements how WordPress works, taking full advantage of what makes WordPress so powerful as a CMS. It also features clean modern code that is constantly being updated with improvements and fixes.

WooCommerce is open source like wordpress (we here at 211j are big fans of open source software).

WooCommerce has a large community with over 3 million downloads and counting. We believe this helps keep the extension working well and the fact that it has a loyal customer base means a lot. You can’t argue that WooCommerce isn’t popular.

When we started our web development company Leon and I decided that going with one type of eCommerce extension was a good idea because it allows us to be experts in that extension. We had a choice as to which one we would choose. After carefully considering the options we chose WooCommerce and 2 years later we couldn’t be happier with the choice we made.

Google Trusted Stores for Woocommerce Extension Released

Google Trusted Stores for WooCommerce

UPDATE 08/01/2014: This extension has been acquired by another company. If you are interested in integrating Google Trusted Stores with your WooCommerce, please contact me at leon @ this domain, or got my contact page.

I created an exciting new plugin called Google Trusted Stores for WooCommerce. The plugin is designed to help with the demanding process of setting up a Google Trusted Stores account with WooCommerce.

Google Trusted Stores is a service that provides authentication of reliable shipping, customer service, and free purchase protection.

WooCommerce is one of the most popular WordPress eCommerce plugins. It is packed full of features, perfectly integrated into your self-hosted WordPress website.

Google Trusted Stores for WooCommerce Plugin enables Google Trusted Stores badge for woocommerce online stores. The Google Trusted Stores badge gives your site credibility from Google database information.

The benefits of the Google Trusted Stores with WooCommerce plugin are abundant. Not only does it combine the power of WooCommerce with reliability of Google Trusted Stores, but it also minimizes the time it takes to set up Google Trusted Stores. Google Trusted Stores for WooCommerce does things that require daily maintenance by automating them to specifications.

From my point of view, Google Trusted Stores for WooCommerce is really about giving the user something that is priceless, time to do other important things. I realize that in the development of eCommerce sites there is always something else to do and it is our goal to make things take as little time as possible. That is why I created this plugin and strive to make more that can save time and aggravation.

211J launches blog

211J on WooCommerce


I have formed a business around WordPress. You could call me the new kid on the block, since I have been at it less than 3 years. Some how in the beginning I knew enough to pick one eCommerce solution and stick with it. This choice allowed me to focus on a specialty and gain an edge in the field. Because that solution was WooCommerce I have had much success. This is why I decided to make my first blog about WordPress and WooCommerce and how they are the perfect combination.

Stay tuned for product reviews, code snippets, life advice, general rambling and much much more…