3

How I can add custom field with custom value in Order Summary? ty for answer enter image description here

asked Jul 31, 2019 at 14:57
3
  • is it static field or dynamic ? Commented Jul 31, 2019 at 16:26
  • @BornCoder custom field static, value = dynamic Commented Jul 31, 2019 at 16:29
  • Create field in admin system.xml and use that field here, so that you will get dynamic value. If you have any requirement depend on checkout page then you need create attribute for checkout page. Commented Jul 31, 2019 at 16:38

1 Answer 1

2

This is hard to explain. It's not just add field in checkout, you also need to add this field to admin order, invoice, shipment, creditmemo.

There are so many files and coding involve in adding just one field in order summery.

I would suggest use SilkSoftwar Module Creator: https://www.silksoftware.com/magento-module-creator/magento2-module-creator.php

Use the option "Need to Add New Extra Fee for Order" and generate your module, you will get whole coding of what you want.

Hope it will help you.

answered Jul 31, 2019 at 16:38

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.