Home Forums WoodMart support forum Problem with swatches

Problem with swatches

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #501655

    webdevandre
    Participant

    Hello, we have a woocommerce with woodmart theme.

    We have color and size attributes. They work, but they do not show exactly as we want to.

    As you can see in the picture below, we want to have that diagonal line when a size is out of stock.
    https://imgur.com/a/u5VWA4K

    However, in the frontend, this does not work:
    https://imgur.com/fSNTE50

    In that image above, the M/L size should be cutted with that diagonal line, but nothing happens.

    Can you help us?

    #502006

    Hung Pham
    Keymaster

    Hi webdevandre,

    Thanks for reaching to us.

    I tested it locally and everything works fine https://prnt.sc/RMLtY0BErgRE.

    You may confused Disabled swatches and Out of stock variations.

    Disabled swatch shows that there is no product with the following combination of attributes, and they are completely not related to the status of existing combinations, neither in stock nor out of stock.

    In this example, you can see that https://prnt.sc/RMLtY0BErgRE there are only blue and brown products with size M. There is no Blue/Brown variation of products with sizes L and S, so you even can’t select this combination (they are “disabled”), but blue and brown with M size can be selected because they exists and even if it is out of stock you can still select it to see its stock status.

    Hope this helps.

    Regards,

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