If you want to show some column only for login user, you can do it very easily. Click and expand that column and you will show an option "Only Login user" just check it. So now the user can't see that column until he/she login.
We have noticed that in the quantity column multiple plus-minus buttons appear because of some theme, like above. In this article we are going to solve that problems.
Time needed: 2 minutes.
Get rid of multiple plus minus problem
Uninstall recommended plugin
When someone installs our WOO Product Table plugin, we recommend our another plugin "Quantity Plus Minus Button for WooCommerce". Please deactivate the plugin if it has activated. Also, any other Quantity Plus Minus Button plugin as well, if there is any.
By default in our product table quantity is 1 and when you add the product into the cart product quantity will back to 1. If you want to set product quantity 0 instead of 1, you can easily do it by using a filter hook called wpto_qty_return_zero.
Now suppose you are using one of the quantity control plugin. In that case when you add product to the cart, quantity will back to the minimum value.
But you want that quantity should be the same increment value. For example, your product minimum quantity is 2 and you increase value to 6 and then add product to cart. Now you don't want that the quantity value set back to the minimum value 2. You want quantity value remain that increase value 6.
For that we just need to use 'wpto_qty_return_quanity' filter.
WooCommerce template files contain the markup and template structure for frontend and HTML emails of your store.
When you open these files, you will notice they all contain hooks that allow you to add/move content without needing to edit template files themselves. This method protects against upgrade issues, as the template files can be left completely untouched.
Template files can be found within the /woocommerce/templates/ directory
How to Edit Files
Edit files in an upgrade-safe way using overrides. Copy the template into a directory within your theme named /woocommerce keeping the same file structure but removing the /templates/ subdirectory.
Example: To override the archive page, copy: wp-content/themes/yourtheme/woocommerce/archive-product.php
The copied file will now override the WooCommerce default template file.
Now edit archive-product.php and delete woocommerce_shop_loop and paste our table shortcode
Example - echo do_shortcode("[Product_Table id='104' name='test']");
If you want to use the advance search box, then select Show Search Box from "Search &Filter" tab. It will appear a search box on your front-end table page. Now turn on "Advance Search" option from Configure page.
You can also search from a specific area. As an example, suppose you want to search only from the post title and SKU then select post_title and _sku from "Search From". Also, you can search from other sections.
Also you can search from taxonomy as well. Set which taxonomy you want to search in.
Woo Product Table gives you the opportunity to Overriding templates of the columns from your theme.
You can change the contents appearance with overriding template files. Our template files could be found at woo-product-table/includes/items or if you are a pro user then you should also look at woo-product-table-pro/includes/items directory. To override via your theme simply create a directory named woo-product-table/items and copy the template files inside this directory.
Below you can see our template structure. If you want to override any of these just copy and paste in to your-theme/woo-product-table/items directory.
Overriding templates feature can give you the more flexibility to customize the Woo Product Table as per your requirement. If you need any help on this topic please let us know by creating support ticket.