Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

191
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!