I would like to add checkbox in shipping method for extra charge if selected.

for that I have overrided checkout/cart/shipping.phtml, it displays correctly on shipping method like this Screencast


But how to make ajax call on it and add charge to shipping method.

also is there any core method to do like this so that it can be available globally like when order create from admin interface.


Get this work only for cart. But anyone know how to make it globally available. For cart I have to overwrite cart controller updatepostaction and set flag to set price based on selected shipping.

How do I make available this on onepage, create order from admin.

Coz there is diffrent method called in onepage controller to set shipping method.

  • @Zaheerabbs Any solutions? – mahmoudismail Feb 22 '18 at 11:01
  • yes i will post it soon :) – Zaheerabbas Feb 22 '18 at 15:00
  • Can you post your solution please? – mahmoudismail Feb 23 '18 at 6:44
  • Hello @mahmoudismail you can go through this link and download the code and change as per your requirement. drive.google.com/drive/folders/… I have just added module file you can add checkbox in your template file it will work. – Zaheerabbas Feb 27 '18 at 2:58

Your Answer

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

Browse other questions tagged or ask your own question.