Add a questions form tab to all products in WooCommerce

Reading Time: < 1 minuteDepending on the products you sell, you may want to add a product inquiry tab so that it’s available for your shoppers in the event that they want to contact you about the product. Let’s look at two ways you can do this. Continue reading “Add a questions form tab to all products in WooCommerce”

Using GTIN Numbers on Products in WooCommerce

Reading Time: 2 minutes

By default WooCommerce adds in a SKU custom field to products, but that may not cover your needs, depending on the products you offer. If you’re selling books or magazines ISBN numbers are going to be necessary. Various GTIN (Global Trade Identification Number) options are also important, both for selling and for tracking your products.

How to add GTIN number fields to WooCommerce Products

Or: I need to be able to add GTIN numbers onto the products listed on my store, but WooCommerce only adds an option for SKU?

Fortunately, there is code that can be added to your theme’s function.php that will allow you to use different GTIN options, be they UPC, EAN or ISBN numbers, for the products you’re selling. This is also handy if you happen to be listing your products on Amazon, via a feed.

WordPress Code Warning: This article features code changes, or snippets, that you can make in your active themes function.php file. If you are unfamiliar with this task, or want to brush up, we have an article on Managing code snippets in WooCommerce. The technique provided can be used for both WordPress and WooCommerce sites.
 * Add Global Trade Identification Numbers (GTINs) to WooCommerce products.
 * @link

 * Render the Global Trade Identification Number (GTIN) meta field.
function woocommerce_render_gtin_field() {
   $input   = array(
      'id'          => '_gtin',
      'label'       => sprintf(
         '<abbr title="%1$s">%2$s</abbr>',
         _x( 'Global Trade Identification Number', 'field label', 'my-theme' ),
         _x( 'GTIN', 'abbreviated field label', 'my-theme' )
      'value'       => get_post_meta( get_the_ID(), '_gtin', true ),
      'desc_tip'    => true,
      'description' => __( 'Enter the Global Trade Identification Number (UPC, EAN, ISBN, etc.)', 'my-theme' ),

   <div id="gtin_attr" class="options_group">
      <?php woocommerce_wp_text_input( $input ); ?>


add_action( 'woocommerce_product_options_inventory_product_data', 'woocommerce_render_gtin_field' );

 * Save the product's GTIN number, if provided.
 * @param int $product_id The ID of the product being saved.
function woocommerce_save_gtin_field( $product_id ) {
   if (
      ! isset( $_POST['_gtin'], $_POST['woocommerce_meta_nonce'] )
      || ( defined( 'DOING_AJAX' ) && DOING_AJAX )
      || ! current_user_can( 'edit_products' )
      || ! wp_verify_nonce( $_POST['woocommerce_meta_nonce'], 'woocommerce_save_data' )
   ) {

   $gtin = sanitize_text_field( $_POST['_gtin'] );

   update_post_meta( $product_id, '_gtin', $gtin );

add_action( 'woocommerce_process_product_meta','woocommerce_save_gtin_field' );

It is recommended that you try this in a staging environment, which allows you the ability to make sure you have the functionality you’re looking for, without impacting your live site until you’re ready.

Alternative Option: Use a plugin to add GTINs

The option above is great if you’re familiar with customizing your site with code. You can easily drop that code into your themes functions.php file or even as a mu-plugin and get rolling. For those less familiar with using code though an alternative exists. There is a plugin on that can add the field in for you called WooCommerce Add GTIN: UPC, EAN, and ISBN. Just install this plugin like any other one and you’ll be good to go.

Give us a call at 800.580.4985, or open a chat or ticket with us to speak with one of our knowledgeable Solutions or Experienced Hosting advisors to learn how you can take advantage of these techniques today!

Setting Featured Products in WooCommerce

Reading Time: < 1 minuteFeaturing products on your website is a great way to show your best selling or popular products from your store. And setting products as featured products is super simple. WooCommerce has some built in functionality to making this happen. Let’s take a look below.

How do I set certain products as featured products?

To begin open and log into your WooCommerce sites Admin area. Navigate to your products page and find the product you want to have be featured, click the star to make that product be a featured product. It’s really that simple. Once you have featured products set up, WooCommerce will allow you to show all of your featured products by using a shortcode. An example is below. Note that you can change the per page and columns to fit your needs. [featured_products per_page=”10” columns=”2”] It’s that easy. With those two steps, you are now showing your featured products to your visitors.

Selling digital products with WooCommerce

Reading Time: < 1 minuteSo far, we’ve covered a good variety of WooCommerce topics – we touched on order management, product creation and shop customizing. One scenario we haven’t covered yet is selling non-physical products. For example, what would you do if you needed to sell a subscription or a digital download? In this article we’ll quickly go over how you can setup digital products for download. These are products that are not shipped to the user but rather an item they download – like an eBook. How can I add digital download products to my store? You can add a digital download product the same way as you would a simple product or a variable product. The only big difference is that you need to mark it as ‘downloadable’. Next you need to add the downloadable file, or files, to that product. As you can see, in the example above, the process is very similar to creating any other product. Once you click the Downloadable check box you’ll have fields specific to digital products. In these fields you can control: a) the files included in this digital product, b) the amount of times the consumer can download the product, and c) the number of days before the download link expires.
Further reading
Overall the process is the same as creating a basic product in WooCommerce with a few new options. If you’re familiar with building products in WooCommerce then creating your first digital product should be a breeze. If you’re trying to create something more advanced though you can always read the official WooCommerce docs on Digital/Downloadable Product Handling.

Disable Related Products in WooCommerce Product Pages

Reading Time: 2 minutes

There are many reasons to not include related products on your store. Regardless of those reasons, there’s a couple options for you if you’re looking to remove, or stop, the related products from showing on your store.

Continue reading “Disable Related Products in WooCommerce Product Pages”

Control Number of Products Per Page in WooCommerce

Reading Time: 2 minutes

A common question that comes up after someone gets their WooCommerce store setup is about customization. Setting up your store and getting the products loaded in is just part of running any web store. One of the biggest benefits to WooCommerce is the opportunity for customization.

In the coming posts on WooCommerce we’ll explore some basic customization tasks that come up. Starting with a simple one, say you wanted to adjust the number of products that are shown per page in your shop.

Continue reading “Control Number of Products Per Page in WooCommerce”

What is a progressive JPEG?

Reading Time: 2 minutesThe JPEG image format is one of the most commonly used image formats on the web. The format is most often used for colorful, complex images such as photographs. The JPEG specification includes a range of valid file extensions, however the most common are .jpg and .jpeg. No matter the extension used all JPEG images will be treated more or less the same. Although not all JPEG images are created equally. In the image formats specification there exists a lesser known setting. This setting, called Progressive Mode, can drastically improve the experience using JPEGs on the web. Continue reading “What is a progressive JPEG?”

Which Is Better? Private Cloud or On-Premise Hosting?

Reading Time: 2 minutesPrivate hosting services usually fall under two primary types:
  • (Externally) hosted cloud solutions
  • (Internally) hosted or on-premise hardware solutions (you manage your own hardware locally).
The primary differences between the two are:
  • Overall Cost (TCO)
  • Level of support required
  • Available scaling features.

On-Premise Hardware vs. Cloud Hosted Solutions

Every day more and more SMBs (Small to Medium-Sized Businesses) are looking into Private Cloud hosting solutions. A Private Cloud provides compelling benefits including improved ability to scale to meet demand, increased flexibility, and the elimination of potentially complicated and expensive server management costs. Continue reading “Which Is Better? Private Cloud or On-Premise Hosting?”

What is a Canonical tag?

Reading Time: 2 minutes To put it simply a canonical tag is an HTML tag used to indicate to search engines that similar URLs are actually the very same page. The canonical tag is added to pages using a link element in the HEAD of the HTML document. If two URLs contain the same canonical tag this indicates to search engines to index the pages as a single entry. Continue reading “What is a Canonical tag?”

Value Added Tax (VAT) Information & FAQ

Reading Time: 3 minutes

Value Added Tax (VAT) or Goods and Services Tax (GST)

If you reside in a country that charges a value-added tax on services provided, Liquid Web will require a VAT Number that states that you are tax exempt. Without this exemption in place, it is our duty to comply with tax codes around the world. Customers that sell “Business to Business” should be tax exempt, providing your VAT number will ensure that you are not charged additional tax. Continue reading “Value Added Tax (VAT) Information & FAQ”