Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

148
Vistas
Woocommerce admin panel - color quantity >2

I create this message because I can not find my answer ... I am looking for a way that in woocommerce, when a person orders a quantity greater than 2, the number of the quantity is highlighted in a color.

I put a screenshot to show what screen I'm talking about in woocommerce.

My request is not complicated but I can't find any way to do it...

Thanks in advance

admin panel order

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

    add_action('admin_footer', function () {

        echo <<<'EOT'
<script type="text/javascript">
    jQuery(function($){
    var qty_string = $("#order_line_items .quantity .view").html();
    var qty_amount = qty_string.charAt(qty_string.length-3);
    if( qty_amount > 2 ){
     $("#order_line_items .quantity .view").css("color", "red");
    }
    });
</script>
EOT;
    }, 99999);
    

Add the below code to your active theme functions.php file

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda