• Hi,
    I want to hide/inactive that variation value when variation will not available. It is showing when variation will 32 or less but more than 32 it can’t to hide or inactive with display not available.. It is showing that time when all variation have selected give a message like “Sorry, no products matched your selection. Please choose a different combination.” But I want customer will not be able to select those type of variation which is not created or available..

    Thank you very much.

    https://www.ads-software.com/plugins/woocommerce/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    After a certain number of variations, the product page stops calculating all possibilites and instead queries the database to see if the variation is available after it is selected. This is done for performance reason. You can read about this change here: https://woocommerce.wordpress.com/2015/07/13/improving-the-variations-interface-in-2-4/

    If you would like to increase the default number though, you can do so with a snippet like this: https://gist.github.com/claudiosmweb/6f91ad228c2176b986b2

    Thread Starter mdin

    (@mdin)

    Hi Caleb,
    Thank you very much to reply me. May be you didn’t get my problem.So that I am giving you two links for getting my problem more clear.
    1.https://snag.gy/US9DZs.jpg
    2.https://snag.gy/Kd3gfz.jpg
    Both link contain screenshots with red marks. First link showing a message in red marks that

    Sorry, no products matched your selection. Please choose a different combination.

    .When complete select all attribute value or variation. But I didn’t want this type message or solution. I want second link I mean second screenshot contain red mark showing

    10000

    is inactive and also showing a meassage when mouse hover on

    10000

    not available(only when hover may be missing it when taking screenshot but showing). Here customer would not able to select that value which variation is not created or not available.It is working when product variation less than 32 but not working more then 32 variation. I need all products support second link solution and what ever variation have 100 or 200 or more.

    Thank you

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    I am understanding your problem.

    It is working when product variation less than 32 but not working more then 32 variation

    Please read this: https://woocommerce.wordpress.com/2015/07/13/improving-the-variations-interface-in-2-4/

    You want it to pre-check the availability even when there are more than 32 variations. You can do this with code like this: https://gist.github.com/claudiosmweb/6f91ad228c2176b986b2. Though you should note that changing this to 100 could have serious performance issues if your server is not up to the task.

    Hi Caleb,
    The link to the code on Github isn’t working. Is there a new link?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hide/Inactive Product Variation Value when variation not available’ is closed to new replies.