1

I have created a custom shipping method in magento 1.9.1 thanks to this tutorial.

That part was easy, Now I want to add a couple of text inputs (one is a shipping carrier and the other is an account no for that carrier) and a dropdown (showing multiple shipping plans) to this shipping method. How do I display them in the frontend with this shipping method? Do I do save this additional data in a new table or can I save them in the order?

What I need is some steps, guidance, not functional code.

0

Great question.

To display them, you'll need to use a custom block and template, and a solid grasp of the Magento frontend system. If you feel lacking in that area, read this: Editing an Existing Theme - Locating the XML.

To process the data from those fields, you'll probably have to override something in the backend. You may be able to add them to an already submitted from on the frontend, and override a controller or models, or you may have to create your own controller.

You can save them on the order table by adding additional columns to the table, and that's the approach I'd recommend, as opposed to adding more tables. Storing similar sets of data in the same place is my preference.

Good luck, and let me know if you have any questions in the comments below.

  • can you please take a look at this query of mine? shipping&handling – umair.ashfr Dec 5 '16 at 7:58
  • @umair.ashfr thanks for accepting my answer! I've answered your other question; if that solves your problem, would you accept it, as well? – tjons Dec 7 '16 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.