I am using magento 1.9.1.
I am working on a extensions which is allowing the users to pay part of they order, everything is cool and i've done everything what i wanted so far.
The next step that i should do is to create an extra step in the checkout onepage.
My extensions is located like that: /app/code/local/Vivas/PercentPayment/and here are all folders and files of the extension
My questions is how i can create new step in the onepage checkout from the extension. I mean i want to create the new extra step in the checkout's onepage from my extension files. Is that possible and how ?
Thanks in advance!
Best Answer
By default magento gives some checkout steps. But Sometime you need to add extra information from the customer for future reference. A common requested customization is to add the Custom Form in default checkout process. This is not good practice to touch core files. You can do this via overriding Modules. In this example Comapnyname is Ipragmatech and Module name is Checkoutstep.
Step1: Add Custom step in the checkout process
Open the
Ipragmatech/Checkoutstep/Block/Onepage/Checkoutstep.php
file and write the following code:Step2: Add steps which and where you want in the checkout process
Open the
Ipragmatech/Checkoutstep/Block/Onepage/Checkoutstep.php
file and write the following code:Step3: Grab the submitted value of custom form and set the values of Custom form.
Open the
Ipragmatech/Checkoutstep/controllers/OnepageController.php
and write the following function:Step4: Save Custom Form information
When
checkout_onepage_controller_success_action
event hook is called. Open theIpragmatech/Checkoutstep/Model/Observer.php
and write the following:Magento – Add Custom Form in Checkout Extension is a complete solution to add extra step in Checkout process for your ecommerce website. It allow admin to export data from custom table in CSV format.
Visit the link to get this free extension.