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

309
Vistas
Prestashop - Display a warning when there's product customization field in order

Is there any easy way to show a warning in the orders admin panel whenever client enters something into a non-required customization field? We've had a functionality like that through an (admittedly convoluted and no longer necessary) product designer module and it looked like this, but we've got rid of it and now when reinstalling the module it doesn't seem to work again - obviously even if it did that would not be ideal.

The code i found in that module:

js

        if ($('#table-order').length && $('#table-order tbody').length
            && typeof tshirtecommerce_orders_url != 'undefined' && tshirtecommerce_orders_url != '') {
            var orders = [];
            $('#table-order tbody tr').each(function() {
                var id_order = $(this).find('input[name="orderBox[]"]').val();
                orders.push(id_order);
            });

            if (orders.length > 0) {
                $.ajax({
                    type: 'post',
                    url: tshirtecommerce_orders_url,
                    data: {'orders': orders},
                    cache: false,
                    dataType: 'json',
                }).done(function (jsons) {
                    $('#table-order tbody tr').each(function() {
                        var id_order = parseInt($(this).find('input[name="orderBox[]"]').val());
                        console.log(jsons[id_order]);
                        if (typeof jsons[id_order] != 'undefined' && parseInt(jsons[id_order]) > 0 && typeof tshirtecommerce_customization_product != 'undefined') {
                            $(this).children().eq(2).append('<br/><span class="tse_customization_text">'+tshirtecommerce_customization_product+'</span>');
                        }
                    });
                });
            }
        }
    }

css

    background-color:#4CAF50;
    display: inline-block;
    color: #fff;
    border-radius: .25em;
    padding: 0 2px;
}

However I'm entirely unsure how to port that functionality.

about 4 years ago · Juan Pablo Isaza
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