Magento 2.x – Add custom product attribute to checkout summary

If you want to add or change the checkout summary section, you can proceed creating a module with a plugin, like this:

  • app/code/Offset101/AttributeCheckout/registration.php
  • app/code/Offset101/AttributeCheckout/etc/di.xml
  • app/code/Offset101/AttributeCheckout/etc/module.xml
  • app/code/Offset101/AttributeCheckout/Plugin/ConfigProviderPlugin.php

  • Then, you will need to override the following phtml in your custom theme app/design/frontend/<your_theme>/blank/Magento_Checkout/web/template/summary/item/details.html  Adding your new field, below the name, like this:
  • Afterwards, remember to: