Title: problem in creating variables
Last modified: August 30, 2020

---

# problem in creating variables

 *  Resolved [aabouei](https://wordpress.org/support/users/aabouei/)
 * (@aabouei)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problem-in-creating-variables/)
 * When i try to make variables in woocommerce, when my variables is over the 30,
   in viewing Conditional logics do not work properly but less than 30 is ok, what’s
   the problem that i have problem to make this truely?!?!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Phil](https://wordpress.org/support/users/fullysupportedphil/)
 * (@fullysupportedphil)
 * Automattic Happiness Engineer
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problem-in-creating-variables/#post-13335372)
 * [@aabouei](https://wordpress.org/support/users/aabouei/) this is intentional.
 * When there are more than 30 possible variations, WooCommerce will not use conditional
   logic to filter what options are shown.
 * This is done because the calculations WooCommerce needs to do for the conditional
   visibility can be too much for underpowered or shared hosting sites.
 * You can read more about that on this post:
    [https://developer.woocommerce.com/2015/07/13/improving-the-variations-interface-in-2-4/](https://developer.woocommerce.com/2015/07/13/improving-the-variations-interface-in-2-4/)
 * There is also a code snippet in that article that you can use to increase the
   number of variations that WooCommerce will dynamically calculate. Please keep
   in mind though that this limit was put in place to prevent site performance being
   impacted. So if you increase this value you may find your site being slower if
   it is not powerful enough.
 *  Thread Starter [aabouei](https://wordpress.org/support/users/aabouei/)
 * (@aabouei)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/problem-in-creating-variables/#post-13345280)
 * Is it a code that you said we can use it for increase the variable logical using?
 *     ```
       function custom_wc_admin_variations_per_page( $qty ) {
       	return 20;
       }
   
       add_filter( 'woocommerce_admin_meta_boxes_variations_per_page', 'custom_wc_admin_variations_per_page' );
       ```
   
 * if is it true, where should i paste this code !??!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘problem in creating variables’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [variables](https://wordpress.org/support/topic-tag/variables/)

 * 2 replies
 * 2 participants
 * Last reply from: [aabouei](https://wordpress.org/support/users/aabouei/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/problem-in-creating-variables/#post-13345280)
 * Status: resolved