How To Limit Max Order Quantity In WooCommerce

As a shop owner, you may want to sell as many items as possible. However, there are cases you want to limit the number of items a single customer can purchase. The reasons can vary: maybe you have limited stock, maybe you don’t want a single customer stocks many items and reseller it later with much higher price… Whatever the reason, you will feel the need for a function to set the maximum number of item per product that a single customer can purchase. The good news is, there is a solution for that and it’s totally free.

Meet the plugin that enable max quantity of items that a single customer can purchase PER PRODUCT

Remember, the limit is PER PRODUCT (I’m sorry for the uppercase but this is important). For example, you have leather bag and plastic bag. You can set the quantity limit for leather bag is 2 and plastic bag is 3. So, your customer can order up to 5 items total but she cannot buy more than 2 leather bags or 3 plastic bags.

Now, let’s install this plugin called Woocommerce Max Quantity

Installing the plugin is very straightforward. You can search the plugin by entering its name in Plugins->Add new. You may need to scroll down a bit to see the plugin since at the time of this writing, it stays at the bottom of the first page.

After activation, go to the product you want to set the limit. Click on Inventory tab. You will see there is a new box appears to enable the max quantity. In the example below, a single customer can only purchase 4 fake lamborghini cars from my store:

Set max quantity for single customer on a product
Set max quantity for single customer on a product

Now, update the product and let’s go to the product page and try to order more than 4 items:

Max Quantity order per item Woocommerce

As you can see, the store sends a notice to customer when she tried to order more than the limit.


The plugin does a great job setting the limit for the order per single product. If any improvement needed, I think that’s a function to display the limit right below the order button so the customer can see the limit right before she enters the order quantity.

How To Watch Movies, Listen to Music, Read Books On Your Computer From Your Phones

Nowadays, having a phone that has hundreds GB of storage is not uncommon. In fact, Samsung Note 9 has 1TB of storage. That’s a lot of spaces to store all kind of movies, music and books that an average person need. However, there are two obvious problems:

  1. Not all people can afford a Note 9
  2. 1TB is big for a phone but when it comes to 4k movies, that’s not a lot.
  3. Storing a lot of data can make your phone runs slowly. Searching for your recorded videos, captured images may take much longer time.

Chances are we all have computer that can hold a lot more spaces. I have a PC that has 1TB external HDD, 2TB SATA HDD and that’s more than enough. My phone, sadly has only 16GB.

Sometimes I don’t want to watch movies on my PC, I want to watch them on my phone. As you can relate, 16GB of internal storage is too little, especially when I don’t have a SD card slot.

So, what’s the solution?

What if you can access all the files on your PC from your phone? You can lay back on your bed and enjoy the movies without worrying about waiting hours to copy the big media files between computer and phone.

Well, that’s actually possible and very easy.

How to access movies, music, books, files on your PC from your phone or other devices?

Before we begin, there is one requirement:

Both your phone and your pc (Mac) must connect to the same wifi network.

Now, let’s get start with step 1: Install XAMPP on your PC.

Downloading XAMPP is free and easy. You can download it here.

After that, you can run and install that program. It is recommended to keep your UAC settings at the lowest level.

After installing, you can now start apache server like this:

As you can see, I have both Apache server and MySQL server started. However, you only need to click on the start button at the right of Apache. In the screenshot above, Apache was started successfully.

Step 2: Create a symbolic link of your media folder in C:\xampp\htdocs

Open your command prompt window and cd to C:\xampp\htdocs

Now, we are going to create  a link to your media folder using the following command

mklink /d LINK TARGET

For example, I want to create a folder MEDIA in C:\xampp\htdocs that link to C:\Users\VIDEOS, I would type this:

Notice that, you must not create the MEDIA folder. The mklink command will create that folder for you.


Now, you have successfully created a symbolic link to your media folder inside the htdocs fodler.

Step 3: Find your PC’s local IP address

Open command prompt and type


You will see a lot of data are printed on the screen. However, there is only one line you need to pay attention to, that is IP V4 address:

In this case, the ip address is

Step 4: Access the media files from your phone

Now, you can access the media files from your phone. Let’s open your browser and enter the IP address you got from step 3 and slash(/)MEDIA. Here is what I see:

As you can see, I have one movie file. I can click on that to start enjoying the movie.


This method works only when your phone and your PC connect to the same WiFi network. It’s a great convenience when your phone doesn’t have much space and you want to access to the library of entertainment on your PC. If you have any questions, please let me know.