Posted on 1 Comment

How To Enable Search Products By SKU, Tags, Categories In WooCommerce

search box woocommerce

The product search function comes with WooCommerce is often enough for most stores. When you enter a search term in the WooCommerce default search box, if the search engine finds a text match in title or in content, the result will return.

However, what if you want to search products by SKU, tags or catetgories? With WooCommerce default search function, you are out of luck.

The good news is, there is a good plugin that let you add SKU, tags, categories to the product search. It works with most themes too.

So,  how to add the new search power to your site? Let’s find out.

Step 1: Install Advanced Woo Search

The first step is to install a plugin called Advanced Woo Search from WordPress.org repository. You can download it here.

The other method to install this plugin is to search for Advanced Woo Search from your Plugins->Add new panel. At the time of this writing, it’s at the #1 position:

searching for advanced woo search in plugins add new

After installing and activating the plugin, you’ll see its menu appears on the left:

advanced woo search menu item

Step 2: Configure Advanced Woo Search’s options to enable advanced products search on your site

click on that and we’ll get to the main configuration screen:
advanced woo search options first screen

How To Enable Search Products By SKU, Tags, Categories In WooCommerce 1

Here are the most important settings you need to pay attention to:

1. Re-index table: You need to click on this, wait for a while for the process to complete

index products for advanced search

2. Clear cache: As you first use the plugin, this button doesn’t hold much importance. However, it’ll be useful later.

3. Seamless integration: I would recommend set this option to On simply because it will enable the search functions for the existing WooCommerce search box. However, some themes may implement their own search functions so this is not guaranteed to work on all themes.

4. Cache results: Caching will make the search faster if the same term is searched over and over.

5. Sync index table: This option will update the index every time your products are updated. This will help bring fresh results. However, if you notice your site’s performance decrease, you should leave this off.

6. Search in: This is the most important feature of this plugin. It enables you to search in SKU, category, tags (fields that are not supported in WooCommerce’s default search function). You can even exclude title, content, excerpt from the search field if you want. However, I don’t see much sense in doing so:

add fields to search when searching for products

7. Show out of stock: This is self-explanatory. Do you want to show out of stock items? If yes, select show.

8. Stop words list: Stop words are words that have little to no meaning and should be exclude from search. You can add or delete words from this list. Make sure to re-index (1.) after changing the text in this box.

9. Do you want to use Google Analytics to track search? If yes, click On. However, you need to setup your Analytics account if you select On for this option.

Now, you are done with 90% of the work. Click on save changes to save your options.

At this point, you can go ahead and try the search function on your site. If you choose seamless integration, you could see the result right away. Let me demonstrate:

Before I have the Advanced Woo search’s seamless integration enabled. I couldn’t search for SKU. For example, I have a product that has SKU is SNK111. Without seamless integration, I couldn’t find the product:

woocommerce default search failed on sku search

Now, with the plugin Advanced Woo Search enabled and seamless integration On, I can search for products with SKU:

search successful with advanced woo search

The plugins does provide other tabs for users to customize the search function further and I encourage you to try those tabs out. The options are very straightforward and easy to understand.

Step 3: Add the Advanced Woo Search widget to your sidebars so your customers can use the advanced search option

If you have used WordPress for a few weeks, I think you don’t have a problem adding widgets to the website’s sidebar. In case you don’t know, let’s go to Appearance->Widgets:

How To Enable Search Products By SKU, Tags, Categories In WooCommerce 2

Simply drag the AWS widget to the position on the sidebar you want to show the search box and click on Save. You now have a search  box that is way more powerful than WooCommerce’s default.

 

Conclusion

As you can see, WooCommerce’s default search function stop at searching through text in title and content only. If you want to search a product by tags, by categories or by SKU, you need plugins like Advanced Woo Search. As a free plugin, it allows you to extend the search function, add stop words (words to ignore) and custom design your search box. That’s is great and I think it’s enough for most stores. If you need for more features, consider upgrade to the pro version. (I have no affiliation with the author).

Posted on 5 Comments

How To Quickly Add Cart Icon On Your WooCommerce Site Navigation Bar

How To Quickly Add Cart Icon On Your WooCommerce Site Navigation Bar 3

Nowadays, almost all WooCommerce theme has the support for the cart icon on menu. However, what if your theme doesn’t support WooCommerce extensively? What if it lacks the cart icon on the navigation menu? Don’t worry, you don’t have to change your theme. There is a plugin for that.

Here are the steps you need to do to get the cart icon on your navigation menu:

  1. Check if you have a menu created
  2. Check the location of your menu
  3. Install and activate  WooCommerce Menubar cart plugin
  4. Add the cart icon to your navigation bar

Without further ado, let’s get started.

Check if you have a menu created

Creating a menu is one of the tasks that you do first when creating your site. However, speaking from my personal experience, many times I use the default menu that WordPress provides, that is the list of pages on my site. To be honest, sometimes it’s all I need. However, as we are going to display the cart icon on our navigation bar, we need to have at least one menu.

So, let’s go to Apperance->Menus:

no menu available in wordpress

As you can see, I don’t have a menu on this site. So, let’s create one.

I’m going to quickly create a menu here so we can get on display the cart icon on my site’s navigation bar. So, I’ll enter the menu name and click on Create Menu:

create a menu in wordpress

Now I have a menu. You may think that we are done here with the menu. However, there are a few things we need to do. First, it’s to add some items to the menu. I’m going to add the Cart, Shop and Checkout page to the menu:

add woocommerce page to the navigation menu

After clicking on Add to menu, I got my pages appears on the menu. Let’s click on Save menu to save the changes.

The last step is to set this menu to the top navigation position. Let’s click on Manage Locations. The number of navigation menu locations depends on the theme. As I’m using StoreFront, I have three locations as shown below.

available navigation locations on wordpress theme

I want to set the menu to the Primary Menu location only. So I click on Select a Menu and select the menu I’ve just created. I click on Save changes when all is done.

set menu location in wordpress

Now, we are done with the menu. Let’s install the plugin to display the cart icon on the navigation menu of our site.

Install and activate  BC Menu bar cart plugin

Now, it’s the to install the plugin I mentioned in the beginning of this post. It’s a free plugin on WordPress.org. You can download it from here

After activating the plugin, you’ll see it in the plugins list:

bc menu bar cart icon plugin activated

Now, let’s click on Get started to start creating the cart icon on your menu.

 

bc menu cart main interface

Start configuring the cart icon design

Now, click on the Create new cart design tab:

bc menu bar cart icon create design

You can see there are quite many options. However, don’t be intimidated. I created this plugin to let you customize every bit of the cart icon on your navigation menu.

To create the cart icon on your navigation bar, you just need to set a few options.

Let me explain the way the plugin works really quickly.

In the previous section, you created a menu and assign it to specific location(s).

Now, with BC Menu bar cart icon, you will create designs (this is the cart icon design). Then, you can attach designs to menu.

As you can see, you can attach any design to any menu. This is one of the advantages of this plugin over other ones on the market. Most of other plugins only allow you attach a cart icon to a menu.

Design sections explained

So, let’s go ahead and create a design. Let me briefly introduce the options you can set on this page:

Section 1: Design title: this is the title of your design. It is similar to the title of a post. You can name it anything you like. Make sure it makes sense. For example, “cart icon design for main navigation menu” 0r “cart icon design for footer menu”.

Section 2. This section let you set the display rule for the cart. If you want to hide the cart icon when it is empty, uncheck the first checkbox. For the second checkbox, I always check it.

Section 3: Cart layout: Here you can select the layout of the cart icon. As you can see, we have 6 layouts for you to choose from. Let’s pick the one you like. “My cart replacement” is the alternative text for “My cart” on the design that have this text. Finally, you can set the cart icon to float left, right or center.

After selecting all the option, click on save changes to save the changes. You will see the page reload and new design created:

icon cart design created

As you can see, all the options are saved and there is a shortcode created. You can put this shortcode anywhere to display the cart icon.

Link the design to your navigation menu

Now, the next step would be link this cart design to a menu. Let’s click on the “Link Design to menu” tab:

link menu to design

Now, since we only have one menu and one design, the choice would be obvious. However, when you have multiple designs and multiple menu, you’ll see a list of designs appears under the menu.

For now, select the design for the menu and click on Save links.

Check the cart icon on the navigation menu

Now, you can open your site and see the  cart icon appears on the navigation menu. Here is what it look like on my theme:

cart icon with cart total and item count on the menu

As you can see, the icon with items count and cart total appears on the menu. You may wonder:

  • Can you change the cart icon color (blue/red… instead of black)?
  • Is it possible to change the cart icon to something else

The answer for all the questions above is yes. I’ll leave it for you to discover in the plugin. You can download the BC Menu Cart Icon plugin here for free.

I also make a pro version, which let you customize the icon much further. You can also see the list of items in cart when you hover/click on the icon. You can find out more about the pro version here.

Conclusion

Adding a cart icon (with different designs, to include cart icon, cart total, cart item count…) to your navigation menu used to be a difficult task and required coding. However, with BC Menu Cart Icon, the problem is so simple to solve now. I hope you enjoy using the plugin as much as I enjoy creating it. If you have questions, don’t hesitate to send me a message or leave a comment below.

 

 

 

Posted on 11 Comments

List of shortcodes In BC Woo Thank You Page Builder

You can find below the list of the shortcode that supported by my plugin BC Woo Thank You Page Builder:

Most common pieces of data

  • [bctk_formatted_billing_full_name] : Full customer billing name
  • [bctk_formatted_shipping_full_name] : Full customer shipping name
  • [bctk_formatted_billing_address]: Full billing address
  • [bctk_formatted_shipping_address]: Full shipping addres
  • [bctk_formatted_order_total]: Order total, currency formatted
  • [bctk_customer_note]: Customer note
  • [bctk_order_number]: Order number
  • [bctk_order_id]: Order ID
  • [bctk_view_order_url]: URL to view the order details
  • [bctk_order_details]: Table that list the order details
  • [bctk_billing_first_name]: Billing first name
  • [bctk_billing_last_name]: Billing last name
  • [bctk_billing_company]: Billing company
  • [bctk_billing_address_1]: Billing address 1
  • [bctk_billing_address_2]:
  • [bctk_billing_city]
  • [bctk_billing_state]
  • [bctk_billing_postcode]
  • [bctk_billing_country]
  • [bctk_billing_email]
  • [bctk_billing_phone]
  • [bctk_shipping_first_name]
  • [bctk_shipping_last_name]
  • [bctk_shipping_company]
  • [bctk_shipping_address_1]
  • [bctk_shipping_address_2]
  • [bctk_shipping_city]
  • [bctk_shipping_state]
  • [bctk_shipping_postcode]
  • [bctk_shipping_country]
  • [bctk_order_item_totals]

Bank transfer shortcode

  • [bctk_payment_bacs_account_name]
  • [bctk_payment_bacs_account_number]
  • [bctk_payment_bacs_bank_name]
  • [bctk_payment_bacs_routing_number]
  • [bctk_payment_bacs_iban]
  • [bctk_payment_bacs_swift]

Less common order data

  • [bctk_order_key]
  • [bctk_customer_id]
  • [bctk_user_id]
  • [bctk_user]
  • [bctk_address_prop]
  • [bctk_payment_method]
  • [bctk_payment_method_title]
  • [bctk_transaction_id]
  • [bctk_customer_ip_address]
  • [bctk_customer_user_agent]
  • [bctk_created_via]
  • [bctk_date_completed] (probably empty if payment is COD/bank transfer…)
  • [bctk_date_paid] (probably empty if payment is COD/bank transfer…)
  • [bctk_date_created]
  • [bctk_address]
  • [bctk_shipping_address_map_url]
  • [bctk_downloadable_items]
  • [bctk_checkout_payment_url]
  • [bctk_checkout_order_received_url]
  • [bctk_cancel_order_url]
  • [bctk_cancel_order_url_raw]
  • [bctk_cancel_endpoint]
  • [bctk_edit_order_url]
  • [bctk_customer_order_notes]
  • [bctk_refunds]
  • [bctk_total_refunded]
  • [bctk_total_tax_refunded]
  • [bctk_total_shipping_refunded]
  • [bctk_item_count_refunded]
  • [bctk_total_qty_refunded]
  • [bctk_qty_refunded_for_item]
  • [bctk_total_refunded_for_item]
  • [bctk_tax_refunded_for_item]
  • [bctk_total_tax_refunded_by_rate_id]
  • [bctk_remaining_refund_amount]
  • [bctk_remaining_refund_items]