In order to use the Woocommerce Variations to Table – Grid plugin, please navigate from your WordPress administration panel to “Woocommerce -> Variations Table“
On your product page or anywhere were shortcodes are executed (eg. posts and pages), you may use the shortcode [vartable] . If you just put the shortcode then it will read the options of the plugin that you have set via the admin settings panel.
In order to customize the shortcode you may use the following attributes (respectively to the above options):
On all attributes, setting it to “1” equals to “yes” and “0” equals to “no”, when yes or no apply as a possible options. Here is an example:
[vartable thumb=1 thumb_size=150 stock=1 in_stock_text="We have plenty" out_stock_text="Everything is gone" offer=0 qty=1 ajax=0]
As you may notice we have not set the cart, wishlist etc. attributes, hence the shortcode will do as we have set via the plugin’s settings panel
If you use the shortcode outsite the product page, then the “id” attribute of the shortcode is mandatory!!!
You may display all variable products variations with the shortcode [vartableall]
. The same arguments as above can be used AND title = 1 for displaying the title of the product before each table AND categories
categories can be set with category id and comma separated, eg [vartableall categories=10,14]
to include products from these two categories only.
Do not use the id option on this shortcode.
Many hooks are in place. Please search the code for a full list. Below are some of them with examples.
You can add alter the css class of the link to the full image for each variation with the filter “vartable_thumb_class_filter”, eg.
add_filter( 'vartable_thumb_class_filter', 'my_vartable_custom__img_class'); function my_vartable_custom__img_class($class) { $class = $class.' myclass anotherclass'; return ($class); }
The Woocommerce “single_add_to_cart_text” filter is in place. Please refer to Woocommerce documentation.
You may add your own css class for the table wit “vartable_table_class”, eg.
add_action( 'vartable_table_class', 'my_vartable_table_class'); function my_vartable_table_class($class) { $class = ' table-hover table-striped '; return ($class); }
You can add text before and after the table with, “vartable_before_table” and “vartable_before_table”, eg.
add_action( 'vartable_before_table', 'my_vartable_before_table'); function my_vartable_before_table($text) { $text = 'This text '; $text .= 'will go before the table'; echo $text; }
add_action( 'vartable_after_table', 'my_vartable_after_table'); function my_vartable_after_table($text) { $text = 'This text '; $text .= 'will go after the table'; echo $text; }
Remove the table from the top and add it after the product description
function vartable_move_after_description($content) { if (get_post_type() == 'product' && is_single()) { $content = $content . do_shortcode('[vartable]'); } // otherwise returns the database content return $content; } add_filter( 'the_content', 'vartable_move_after_description' ); remove_action( 'woocommerce_variable_add_to_cart', 'vt_woocommerce_variable_add_to_cart', 30 );
Please do not use add_action if you are using the shortcode method
Please try de-activating WooCommerce, activating the plugin and re-activating WooCommerce
Yes, you can via the [vartableall] shortcode.
Yes, this was added on version 1.0.6.
Yes, you can via the shortcode, if the field where you put it shortcodes are executed. You will have to specify the id of the variable product on the shortcode arguments.
Yes, you can via the product edit screen. Please select “Yes” at the option “Disable variations table” under the product’s general settings tab.
Yes, you may do this via the admin panel that is provided under “Woocommerce ? Variations Table”.
Yes, the shortcode is not getting disabled.
Due to the way that wishlist works, it will not support variable products that you have set attributes as “any”.
By enabling AJAX, this will disable the stock quantity check when adding to cart via the plugin.
This wordpress plugin can be installed as any other wordpress plugin. Installation is simple.
You must log in to submit a review.
In order to use the Woocommerce Variations to Table – Grid plugin, please navigate from your WordPress administration panel to “Woocommerce -> Variations Table“
On your product page or anywhere were shortcodes are executed (eg. posts and pages), you may use the shortcode [vartable] . If you just put the shortcode then it will read the options of the plugin that you have set via the admin settings panel.
In order to customize the shortcode you may use the following attributes (respectively to the above options):
On all attributes, setting it to “1” equals to “yes” and “0” equals to “no”, when yes or no apply as a possible options. Here is an example:
[vartable thumb=1 thumb_size=150 stock=1 in_stock_text="We have plenty" out_stock_text="Everything is gone" offer=0 qty=1 ajax=0]
As you may notice we have not set the cart, wishlist etc. attributes, hence the shortcode will do as we have set via the plugin’s settings panel
If you use the shortcode outsite the product page, then the “id” attribute of the shortcode is mandatory!!!
You may display all variable products variations with the shortcode [vartableall]
. The same arguments as above can be used AND title = 1 for displaying the title of the product before each table AND categories
categories can be set with category id and comma separated, eg [vartableall categories=10,14]
to include products from these two categories only.
Do not use the id option on this shortcode.
Many hooks are in place. Please search the code for a full list. Below are some of them with examples.
You can add alter the css class of the link to the full image for each variation with the filter “vartable_thumb_class_filter”, eg.
add_filter( 'vartable_thumb_class_filter', 'my_vartable_custom__img_class'); function my_vartable_custom__img_class($class) { $class = $class.' myclass anotherclass'; return ($class); }
The Woocommerce “single_add_to_cart_text” filter is in place. Please refer to Woocommerce documentation.
You may add your own css class for the table wit “vartable_table_class”, eg.
add_action( 'vartable_table_class', 'my_vartable_table_class'); function my_vartable_table_class($class) { $class = ' table-hover table-striped '; return ($class); }
You can add text before and after the table with, “vartable_before_table” and “vartable_before_table”, eg.
add_action( 'vartable_before_table', 'my_vartable_before_table'); function my_vartable_before_table($text) { $text = 'This text '; $text .= 'will go before the table'; echo $text; }
add_action( 'vartable_after_table', 'my_vartable_after_table'); function my_vartable_after_table($text) { $text = 'This text '; $text .= 'will go after the table'; echo $text; }
Remove the table from the top and add it after the product description
function vartable_move_after_description($content) { if (get_post_type() == 'product' && is_single()) { $content = $content . do_shortcode('[vartable]'); } // otherwise returns the database content return $content; } add_filter( 'the_content', 'vartable_move_after_description' ); remove_action( 'woocommerce_variable_add_to_cart', 'vt_woocommerce_variable_add_to_cart', 30 );
Please do not use add_action if you are using the shortcode method
Please try de-activating WooCommerce, activating the plugin and re-activating WooCommerce
Yes, you can via the [vartableall] shortcode.
Yes, this was added on version 1.0.6.
Yes, you can via the shortcode, if the field where you put it shortcodes are executed. You will have to specify the id of the variable product on the shortcode arguments.
Yes, you can via the product edit screen. Please select “Yes” at the option “Disable variations table” under the product’s general settings tab.
Yes, you may do this via the admin panel that is provided under “Woocommerce ? Variations Table”.
Yes, the shortcode is not getting disabled.
Due to the way that wishlist works, it will not support variable products that you have set attributes as “any”.
By enabling AJAX, this will disable the stock quantity check when adding to cart via the plugin.
This wordpress plugin can be installed as any other wordpress plugin. Installation is simple.
You must log in to submit a review.