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

196
Visualizações
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 à 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