Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Shop / WooCommerce
  3. Variable product selection does not show variations

Variable product selection does not show variations

Scheduled Pinned Locked Moved Shop / WooCommerce
9 Posts 2 Posters 231 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    YungKafta
    wrote on last edited by
    #1

    hey hey!

    I am currently working on a woocommerce shop and have a problem with product variations. the bug is not easily reproduced, thats why i am clueless right now.
    in the shop there are multiple products (e.g. studiopapaya.de/produkt/workshop-gift-card) that have selectable variations (e.g. gift card prices) on one product. on some rare cases the dropdown opens up but just shows the white background like this:

    photo_2024-11-11_16-06-12.jpg

    the options are still selectable and you can add them to the cart and proceed to the checkout - its just the dropdown that is not showing the options. what confuses me is that there is one product (studiopapaya.de/produkt/gift-card) that is working on all the devices that otherwise show the bug.
    i tried a lot of scenarios for bugfixing:

    • on windows/macOS/samsung phones and tablets/iOS (samsung devices seem to have this problem most)
    • on different browsers like chrome, safari, edge and firefox
    • deactivating all plugins
    • wordpress, laytheme, the woocommerce database and all plugins are updated
    • disable all custom code
    • deleted the cache in wordpress and in the browsers everytime

    to make this even more illogical i tried the following:

    1. create a new product with variations
    2. check on device that did not show the variations for now - it's still not working
    3. disable all plugins
    4. check on the same device - its working now
    5. activate all plugins
    6. check on the same device - its still working
    7. check on another device that had the bug - its still not working

    when i repeat this on the next device that was not working before, its working in the end. but all other devices are still not working. this might sound super confusing, but i hope i described it as precise as possible.
    any help figuring out this problem would be appreciated!

    Thanks a lot!

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on last edited by
      #2

      Screenshot 2024-11-12 at 15.03.02.png

      mh i just see one error in the console here.
      can you disable the plugin autoptimize, and leave it disabled?

      for the gift card product i only see a price to choose, not a date
      https://studiopapaya.de/produkt/gift-card/

      mmh i couldnt reproduce the bug on other pages either, i tried with safari and chrome
      couldnt reproduce it in safari on ios either

      can you help me reproduce it? it just happens randomly maybe when i refresh many times?

      ur website looks really good!

      Y 1 Reply Last reply
      0
      • arminunruhA arminunruh

        Screenshot 2024-11-12 at 15.03.02.png

        mh i just see one error in the console here.
        can you disable the plugin autoptimize, and leave it disabled?

        for the gift card product i only see a price to choose, not a date
        https://studiopapaya.de/produkt/gift-card/

        mmh i couldnt reproduce the bug on other pages either, i tried with safari and chrome
        couldnt reproduce it in safari on ios either

        can you help me reproduce it? it just happens randomly maybe when i refresh many times?

        ur website looks really good!

        Y Offline
        Y Offline
        YungKafta
        wrote on last edited by
        #3

        Hi Armin,
        thanks for looking into this so fast. i disabled the autoptimize plugin now, there should be no error anymore. and yes, the gift card just shows the prices, thats how it should look like.

        i was expecting that this bug is not easy to reproduce - if you have a samsung/android smartphone or tablet at hand, maybe on these devices it can be reproduced. i feel like multiple reloads might not produce this error since my own windows pc has never shown these white backgrounds for example. not even with "mobile emulators" etc.

        @arminunruh said in Variable product selection does not show variations:

        ur website looks really good!

        and thank you :)

        1 Reply Last reply
        0
        • arminunruhA Offline
          arminunruhA Offline
          arminunruh
          Global Moderator
          wrote on last edited by arminunruh
          #4

          hey i have another idea.

          Screenshot 2024-11-17 at 12.03.27.png

          can you go to customize → woocommerce → single product

          then change the setting "Quantity Input Type" (at the bottom of the screenshot) to anything with "swatches"

          i will rename this setting to "Variation and Quantity Input Type" with the next update

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            YungKafta
            wrote on last edited by
            #5

            Thanks for the idea, i've tried that already and it still displays empty buttons..

            Unbenannt-1.jpg

            1 Reply Last reply
            0
            • Y Offline
              Y Offline
              YungKafta
              wrote on last edited by
              #6

              Anyone any other ideas on this?

              1 Reply Last reply
              0
              • arminunruhA Offline
                arminunruhA Offline
                arminunruh
                Global Moderator
                wrote on last edited by
                #7

                i would love to help you but i simply cant reproduce this

                can u make this bug show up, then in chrome right click, click "inspect element"
                Screenshot 2024-12-09 at 17.50.11.png

                you may need to enable developer mode or sth for this button to show up

                then look at the style of it in the styles tab:
                Screenshot 2024-12-09 at 17.51.59.png

                and see if theres anything that could hide the text

                just looking at it now, i can see you used some custom css.
                can you remove your custom css please:

                Screenshot 2024-12-09 at 17.51.29.png

                maybe it bugs out because of webkit appearance none or sth? or text fill color?

                1 Reply Last reply
                0
                • Y Offline
                  Y Offline
                  YungKafta
                  wrote on last edited by
                  #8

                  yeah i was hoping to find the solution in the developer mode as well but its kind of illogical there, or rather i cant find anything that would disable the text in any kind of way.. even with custom code disabled theres no difference with the bug.
                  also i cant get a developer mode on a my samsung tablet where the bug is still there. and on other devices i cant reproduce the bug as well. i will try another browser on the tablet with a developer mode later, maybe i find something there

                  1 Reply Last reply
                  0
                  • arminunruhA Offline
                    arminunruhA Offline
                    arminunruh
                    Global Moderator
                    wrote on last edited by
                    #9

                    it only happens on your tablet? do you know which browser and browser version you use or which tablet it is

                    i can check on www.browserstack.com here i can simulate different older browsers and devices

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    I also code custom websites or custom Lay features.
                    šŸ’æ Email me here: šŸ’æ
                    info@laytheme.com

                    Before you post:
                    1. When using a WordPress Cache plugin, disable it or clear your cache.
                    2. Update Lay Theme and all Lay Theme Addons
                    3. Disable all Plugins
                    4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                    This often solves issues you might run into

                    When you post:
                    1. Post a link to where the problem is
                    2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                    3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                    Online Users
                    A
                    alasdair17
                    Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                    laytheme.com
                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Search