Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

173
Visualizações
Auto select first available dropdown option depends on first field

Here at WooCommerce i have 2 fields to choose before add to cart will be active: http://mnowak.devispace.pl/produkt/piekna-liliowa-sukienka-dla-dziewczynek/

If i will choose anything at the field "rozmiar" it will be only 1 option to choose always at the field "wiek dziecka". How to make "wiek dziecka" choosing automatically after "rozmiar" is chosen by user?

There are ids: 1st field - select#pa_rozmiar
2st field - select#pa_wiek-dziecka

So i need to do that, when user choose something at select#pa_rozmiar and if at 2nd field it will be left only on possible answer to choose i want system to automatically choose that one possible answer at select#pa_wiek-dziecka. At a default WooCommerce asks to choose at first at one select, after at second select and only after that it will be possibilty to add at cart.
screenshot of select fields

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda