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

190
Vistas
Store data automatically at the end of checkout with OPC prestashop

I need to find a solution for the checkout with OnePageCheckoutPs.

When a user logged add data, like delivery and invoice, he must not force to click on the 'Update' button for store the datas but it should do directly at the conclusion of the order.

In the screenshot what i need...

1 The customer insert data of delivery et invoice, normally for store this data he has to clcik on 'Aggiorna dati fatturazione' (Update => #btn_update_address_delivery) but i need that this is doing automatically on clicking on the button 3.

2 In the moment he edit a invoice address, it should happen the same thing of point 1...

3 I thought that a practique solution is when click on the button 3, automatically he click (maybe with jquery) on the button 1 and 2..But i try to edit the code with no success...

I suppose that this should be done in the method placeOrder() or onepagecheckout.js, but i can't find a solution for this...Someone can help me?

Here is when the form is submitted

                    if ($rc_page !== 'identity') {
                    if (Validate::isLoadedObject($address_delivery)) {
                        if ($this->config_vars['OPC_USE_SAME_NAME_CONTACT_DA']) {
                            $address_delivery->firstname = $customer->firstname;
                            $address_delivery->lastname  = $customer->lastname;
                        }
                        //Here i should get the input that is not submitted
                        
                        $address_delivery->update();

                    }

enter image description here

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