I want to Get all shopping cart items, subtotal, grand total, billing & shipping address in one step checkout Magento 2 in storefront (Home Page) . according to the this link :


I added new step in checkout page according to this link :


In part of (Using Dependency Injection (DI)) , on that site I do not know where is the directory of .phtml file and also .php file.

1 Answer 1


You need to do this things.

  1. Create one custom module into magento2.
  2. Your block file something like this location.

  3. Your .phtml file something like this location.


Your Answer

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

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