Title: mastervyk's Replies | WordPress.org

---

# mastervyk

  [  ](https://wordpress.org/support/users/mastervyk/)

 *   [Profile](https://wordpress.org/support/users/mastervyk/)
 *   [Topics Started](https://wordpress.org/support/users/mastervyk/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mastervyk/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mastervyk/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mastervyk/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mastervyk/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mastervyk/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/users/mastervyk/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/mastervyk/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How to disable values of an attribute based on previous selection woocommerce](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/)
 *  Thread Starter [mastervyk](https://wordpress.org/support/users/mastervyk/)
 * (@mastervyk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/page/2/#post-6506796)
 * Thanks Mike! You helped my a lot.
    I wish you the best!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How to disable values of an attribute based on previous selection woocommerce](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/)
 *  Thread Starter [mastervyk](https://wordpress.org/support/users/mastervyk/)
 * (@mastervyk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/page/2/#post-6506793)
 * Great, it seems it working. Thank you very much!
    Maybe you will include this
   in the next version of WooCommerce.
 * Last question: If I will update (when you will have a new update), I will lose
   this?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How to disable values of an attribute based on previous selection woocommerce](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/)
 *  Thread Starter [mastervyk](https://wordpress.org/support/users/mastervyk/)
 * (@mastervyk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/page/2/#post-6506791)
 * Ok Mike, it seems that’s difficult to understand each other. 🙂 In my online 
   shop a have more than 40 variations, but this has nothing to with that example.
 * There’s **not 64 variations** for the example used by me to illustrate my case,
   there is just 8 variations.
 * Bare with me please!
 * Sizes: 1, 2, 3, 4.
    Frames a,b,c
 * I will have **just** variations:
    -1a, 1b, 1c, -2a, 2c, -3b -4a, 4c
 * For the other possible variations, **but not available in my shop** I don’t want
   for the user receive the error message:”_Sorry, no products matched your selection.
   Please choose a different combination._“.
    Because I want for those other possible
   variations, but not available in my shop to be not reachable for the user.
 * For example IF the client it will select 3 as a size, for frame automatically**
   should display just one value available** frame for that size, so it will be 
   just **b**frame, **no other choice**.
 * IF the client it will select 4 as a size, for frame automatically **should display
   just two values available** frames for that size, so it will be just **a**and**
   c** frame, **no other choice**.
 * … and so on.
 * So, how I will do that?
 * Thank you Mike for patience and help!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How to disable values of an attribute based on previous selection woocommerce](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/)
 *  Thread Starter [mastervyk](https://wordpress.org/support/users/mastervyk/)
 * (@mastervyk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/#post-6506784)
 * So as I’ve written before I want to create and make available for the user products
   that will have more then 45 variation. Attributes are SIZES and FRAMES.
    I will
   use the example for showing my case:
 * Sizes: **1**, **2**, **3**, **4**.
    Frames **a**,**b**,**c**
 * For Variations are like this:
    –**1a**, **1b**, **1c**, –**2a**, **2c**, –**3b**–**
   4a**, **4c**
 * There are 2 choices to create this:
    **A) Generate all possible combinations 
   an delete the combinations won’t need.** In this example we will delete this 
   variations: –**2b** –**3a**, **3c** –**4b**. In my website when I do that and
   post the product, on the user side, on product page, you will be able to chose
   in SIZE attribute dropdown **3** as a value, in the FRAME attribute you also 
   will find **a**, **b**, **c** as available frames (despide the fact for **3**,
   just **b** should be available). When I will select **3** as a size an **a** (
   or **c**) as frame, I will receive the message error: _“Sorry, no products matched
   your selection. Please choose a different combination.”_.
 * **Question:**
    How I will be aible to to define those variations in such a way
   that the user it will see for the second selection of an value of an attribut,
   just the values available just for that paricular value previously selected?
 * **B)Add variation one by one just for those that I have it as a product.** In
   this way I don’t have the previous problem for the first 20 products. Starting
   with the 21st product, the previous problems from A, is back. So you will see**
   a** and **c** as an option, after you’ve selected already **3** as a size. And
   after I will chose a variations that don’t exist, I’ll receive the same error.
 * **Question:**
    What I should do that all my variation work in the same manner
   as my firt 20? (there are 20 working variations as they should be, after you 
   give the code from the upper part.)
 * Can you explain me what happening for each case (A and B)? Where the problem 
   for each one of them? What I should do to fix it?
 * Thank you Mike!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How to disable values of an attribute based on previous selection woocommerce](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/)
 *  Thread Starter [mastervyk](https://wordpress.org/support/users/mastervyk/)
 * (@mastervyk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/#post-6506768)
 * Ok, thank you for the explanation.
 * So, now I have this problem: I’ve tried to implement your solution, but it’s 
   only working for 20 variations. I have almost 50 variations, so how can I implement
   your solution for my problem? Because I’ve already changed in the code provided
   by you the “20” in “50” and is not working.
 * Thank a milion for everything!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How to disable values of an attribute based on previous selection woocommerce](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/)
 *  Thread Starter [mastervyk](https://wordpress.org/support/users/mastervyk/)
 * (@mastervyk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/#post-6506737)
 * Can you be more explicit please?
    Thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How to disable values of an attribute based on previous selection woocommerce](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/)
 *  Thread Starter [mastervyk](https://wordpress.org/support/users/mastervyk/)
 * (@mastervyk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/#post-6506724)
 * Thanks for the quick reply!
    What about #3 and #4 ?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How to disable values of an attribute based on previous selection woocommerce](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/)
 *  Thread Starter [mastervyk](https://wordpress.org/support/users/mastervyk/)
 * (@mastervyk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/#post-6506722)
 * Hey Mike!
 * 2. I didn’t know it. Thanks! Where you can set the order of variations and affect
   user?
    1. Forget about problem with not working Go button, it’s working now. 
   🙂
 * 3.I’ve copied the code ‘unction custom_wc_admin_variations_per_page( $qty ) {
   
   return 20; }
 * add_filter( ‘woocommerce_admin_meta_boxes_variations_per_page’, ‘custom_wc_admin_variations_per_page’);’.
   
   I’ve created new product because with an existing one it was no change, I had
   it the same problem as in begining. With this new product it was working a until
   I got 20 variations, after this amount of variations the old problem was back.
   So I change the “return 20;” in “return 50;” because I have 40 and something 
   variations.
 * No change with the latest product created so I’ve created a new product but it’s
   not working. What can I do?
 * 4. Also I’ve saw it it’s just working just when you add variation by variation
   manually/ If you try to generate all possible combinations and after that delete
   the ones that you don’t need it doesn’t work at all. Why that? How can I fix 
   it?
 * best regards!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How to disable values of an attribute based on previous selection woocommerce](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/)
 *  Thread Starter [mastervyk](https://wordpress.org/support/users/mastervyk/)
 * (@mastervyk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/#post-6506686)
 * Hey Mike,
 * Thank for your reply! I’ve used this:
 *     ```
       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' );
       ```
   
 * 1. For the moment it seems it’s working but the “Create variation from all attributes”
   function doesn’t work anymore. I click on Go and nothing.
 * What’s happening? Could I fix that? It was much easy to generate all possible
   variations and after that delete those that I didn’t need them.
 * Now I’m adding each variation manually and I have almost 50 per product.
 * So what can I do now?
 * 2. Also I’ve added the first variation and every time when I add a new one it
   appear in top and I have to grabbit and put it on the bottom. Before adding the
   code from above I had an option to set the number of the variation (click on 
   the next link to see these picture: [ ) now this option doesn’t work. What happend??](http://s3.postimg.org/yq9lwyyyb/row_number.jpg)
 * Thanks once again Mike!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How to disable values of an attribute based on previous selection woocommerce](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/)
 *  Thread Starter [mastervyk](https://wordpress.org/support/users/mastervyk/)
 * (@mastervyk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/how-to-disable-values-of-an-attribute-based-on-previous-selection-woocommerce/#post-6506653)
 * Hello Mike!
 * Thank you for your reply! I’m not sure that you understand what I want to accomplish.
 * For example I want to sell t-shirts, yes? My thirst are like this:
    **Shapes**(
   this it will be an **attribute**): – deep v-neck – scoop neck – v-neck (those
   it will be the **values**)
 * **Sizes** (this it will be an **attribute**):
    – s – l – xl (those it will be
   the **values**)
 * **Colors** (this it will be an **attribute**):
    – blue – green – red (those it
   will be the **values**)
 * In stock I will always have all combinations possible between the values of these
   attributes with some exceptions:
    – just for deep v-neck I dont have a green 
   color.
 * In this case I want when someone will select Deep V-neck shape tshirt and will
   select any size, the color green won’t be available in the list of colors. Or
   if someone it will fisr select the color green it will display at the attribute“
   Shapes” just “deep v-neck” and “scoop neck” available choises.
 * In conclusion I want a redefining list of values based of the selections made
   be user.
 * Now wen I add just the variations available in my shop, despite the fact a particular
   variation is not added, user can selected and will receive the message: _“Sorry,
   no products matched your selection. Please choose a different combination.”_.
   It’s frustrating because the user do not know what variations I’ve added or not
   in the back office.
 * How can I make the values change in front office based on what client did choose?
 * Thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Floating expandable menu – For products categories](https://wordpress.org/support/topic/woocommerce-floating-expandable-menu-for-products-categories/)
 *  Thread Starter [mastervyk](https://wordpress.org/support/users/mastervyk/)
 * (@mastervyk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/woocommerce-floating-expandable-menu-for-products-categories/#post-6364393)
 * Still open to hear your ideas.
 * Thank you guys!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Products list with images at different sizes](https://wordpress.org/support/topic/products-list-with-images-at-different-sizes/)
 *  Thread Starter [mastervyk](https://wordpress.org/support/users/mastervyk/)
 * (@mastervyk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/products-list-with-images-at-different-sizes/#post-6364392)
 * I’m still wainting for any suggestions.
    Thank you in advance!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Grid / List toggle] Problem when using Infinite Scroll for products](https://wordpress.org/support/topic/problem-when-using-infinite-scroll-for-products/)
 *  [mastervyk](https://wordpress.org/support/users/mastervyk/)
 * (@mastervyk)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/problem-when-using-infinite-scroll-for-products/#post-5234793)
 * Hello Tushonline!
 * How did you create the infinite scroll for your website?
    Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Woocommerce Social Media Share Buttons] Warning. An unexpected error occurred. Something may be wrong with …](https://wordpress.org/support/topic/warning-an-unexpected-error-occurred-something-may-be-wrong-with/)
 *  Thread Starter [mastervyk](https://wordpress.org/support/users/mastervyk/)
 * (@mastervyk)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/warning-an-unexpected-error-occurred-something-may-be-wrong-with/#post-6409865)
 * I’ve resolved with an reinstall of the plugin.
    Thank you very much for your 
   answer and for the plugin!
 * All the best!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Floating expandable menu – For products categories](https://wordpress.org/support/topic/woocommerce-floating-expandable-menu-for-products-categories/)
 *  Thread Starter [mastervyk](https://wordpress.org/support/users/mastervyk/)
 * (@mastervyk)
 * [11 years ago](https://wordpress.org/support/topic/woocommerce-floating-expandable-menu-for-products-categories/#post-6364285)
 * any suggestions about this expandable menu?

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/users/mastervyk/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/mastervyk/replies/page/2/?output_format=md)