Is there anyway to move the cart products list to the checkout stepsMagento2 Checkout seperate stepsMagento 2.2.3 - Get all products in product grid/listPop up message on checkout page if 1 specific product found in cartGet list of EU countries in JS file in checkoutCheckout cart products disables randomlyHow to Divide Cart items Based upon Attribute valueShow out of stock products at the end of the category page - Magento 2.2.xMagento 2 - join checkout stepsConfigure Magento to use Elasticsearch for Magento ver. 2.2.4 Open SourceCustomizing Checkout in magento2

What Happens when Passenger Refuses to Fly Boeing 737 Max?

Accountant/ lawyer will not return my call

What are some noteworthy "mic-drop" moments in math?

Adding an additional "order by" column gives me a much worse plan

They call me Inspector Morse

PTIJ: Why can't I eat anything?

How much stiffer are 23c tires over 28c?

Offered promotion but I'm leaving. Should I tell?

Does "variables should live in the smallest scope as possible" include the case "variables should not exist if possible"?

Am I not good enough for you?

Can you reject a postdoc offer after the PI has paid a large sum for flights/accommodation for your visit?

Reverse string, can I make it faster?

Is "history" a male-biased word ("his+story")?

Why is Beresheet doing a only a one-way trip?

Does splitting a potentially monolithic application into several smaller ones help prevent bugs?

Do items de-spawn in Diablo?

Good for you! in Russian

How did the power source of Mar-Vell's aircraft end up with her?

Built-In Shelves/Bookcases - IKEA vs Built

Should QA ask requirements to developers?

Space in array system equations

Rejected in 4th interview round citing insufficient years of experience

How do I locate a classical quotation?

Is having access to past exams cheating and, if yes, could it be proven just by a good grade?



Is there anyway to move the cart products list to the checkout steps


Magento2 Checkout seperate stepsMagento 2.2.3 - Get all products in product grid/listPop up message on checkout page if 1 specific product found in cartGet list of EU countries in JS file in checkoutCheckout cart products disables randomlyHow to Divide Cart items Based upon Attribute valueShow out of stock products at the end of the category page - Magento 2.2.xMagento 2 - join checkout stepsConfigure Magento to use Elasticsearch for Magento ver. 2.2.4 Open SourceCustomizing Checkout in magento2













0















I'm trying to add a custom checkout step called Gifts and Rewards, where I can list the products and show the option of wrapping the gifts (available already in the cart in commerce version).



so basically this step shows the list of products typically like in the cart.



any recommendations?










share|improve this question







New contributor




Ahmed Ayman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    0















    I'm trying to add a custom checkout step called Gifts and Rewards, where I can list the products and show the option of wrapping the gifts (available already in the cart in commerce version).



    so basically this step shows the list of products typically like in the cart.



    any recommendations?










    share|improve this question







    New contributor




    Ahmed Ayman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      0












      0








      0








      I'm trying to add a custom checkout step called Gifts and Rewards, where I can list the products and show the option of wrapping the gifts (available already in the cart in commerce version).



      so basically this step shows the list of products typically like in the cart.



      any recommendations?










      share|improve this question







      New contributor




      Ahmed Ayman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I'm trying to add a custom checkout step called Gifts and Rewards, where I can list the products and show the option of wrapping the gifts (available already in the cart in commerce version).



      so basically this step shows the list of products typically like in the cart.



      any recommendations?







      magento2






      share|improve this question







      New contributor




      Ahmed Ayman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Ahmed Ayman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Ahmed Ayman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 10 hours ago









      Ahmed AymanAhmed Ayman

      111




      111




      New contributor




      Ahmed Ayman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Ahmed Ayman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Ahmed Ayman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Create new module with required files like registration.php and etc/module.xml



          Create the .js file implementing the view model.



          Create the checkout-login-step.js file under Namespace/Module/view/frontend/web/js/view directory. Basically, we need step_code, step_title, order and the condition that allows to display this step.



          Here is the code (Read code comment to get more info)



          define(
          [
          'ko',
          'uiComponent',
          'underscore',
          'Magento_Checkout/js/model/step-navigator',
          'Magento_Customer/js/model/customer'
          ],
          function (
          ko,
          Component,
          _,
          stepNavigator,
          customer
          )
          'use strict';
          /**
          * check-login - is the name of the component's .html template
          */
          return Component.extend(
          defaults:
          template: 'Namespace_Module/check-login'
          ,

          //add here your logic to display step,
          isVisible: ko.observable(true),
          isLogedIn: customer.isLoggedIn(),
          //step code will be used as step content id in the component template
          stepCode: 'isLogedCheck',
          //step title value
          stepTitle: 'Logging Status',

          /**
          *
          * @returns *
          */
          initialize: function ()
          this._super();
          // register your step
          stepNavigator.registerStep(
          this.stepCode,
          //step alias
          null,
          this.stepTitle,
          //observable property with logic when display step or hide step
          this.isVisible,

          _.bind(this.navigate, this),

          /**
          * sort order value
          * 'sort order value' < 10: step displays before shipping step;
          * 10 < 'sort order value' < 20 : step displays between shipping and payment step
          * 'sort order value' > 20 : step displays after payment step
          */
          15
          );

          return this;
          ,

          /**
          * The navigate() method is responsible for navigation between checkout step
          * during checkout. You can add custom logic, for example some conditions
          * for switching to your custom step
          */
          navigate: function ()

          ,

          /**
          * @returns void
          */
          navigateToNextStep: function ()
          stepNavigator.next();

          );

          );


          Create an .html template for the component.



          In the above step, we use Namespace_Module/check-login as our template, let’s create it. Create a new html file named check-login.html under Namespace/Module/view/frontend/web/template directory.



          Here is the code



          <!--Use 'stepCode' as id attribute-->
          <li data-bind="fadeVisible: isVisible, attr: id: stepCode ">
          <div class="step-title" data-bind="i18n: stepTitle" data-role="title"></div>
          <div id="checkout-step-title"
          class="step-content"
          data-role="content">
          <p>The customer is <span data-bind="if: !isLogedIn">not</span> Logged-in</p>
          <form data-bind="submit: navigateToNextStep" novalidate="novalidate">
          <div class="actions-toolbar">
          <div class="primary">
          <button data-role="opc-continue" type="submit" class="button action continue primary">
          <span><!-- ko i18n: 'Next'--><!-- /ko --></span>
          </button>
          </div>
          </div>
          </form>
          </div>
          </li>


          Add the new step to the Checkout page layout.



          We need to extend the checkout page’s layout to be able to display the new step. Add this file in our module: Namespace/Module/view/frontend/layout/checkout_index_index.xml.



          The content as follow:



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceBlock name="checkout.root">
          <arguments>
          <argument name="jsLayout" xsi:type="array">
          <item name="components" xsi:type="array">
          <item name="checkout" xsi:type="array">
          <item name="children" xsi:type="array">
          <item name="steps" xsi:type="array">
          <item name="children" xsi:type="array">
          <!-- The new step you add -->
          <item name="check-login-step" xsi:type="array">
          <item name="component" xsi:type="string">Namespace_Module/js/view/checkout-login-step</item>
          <!--To display step content before shipping step "sortOrder" value should be < 1-->
          <!--To display step content between shipping step and payment step 1 < "sortOrder" < 2 -->
          <!--To display step content after payment step "sortOrder" > 2 -->
          <item name="sortOrder" xsi:type="string">2</item>
          <item name="children" xsi:type="array">
          <!--add here child component declaration for your step-->
          </item>
          </item>
          </item>
          </item>
          </item>
          </item>
          </item>
          </argument>
          </arguments>
          </referenceBlock>
          </body>
          </page>


          Reference link,
          https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_new_step.html






          share|improve this answer

























          • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

            – Manashvi Birla
            9 hours ago










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Ahmed Ayman is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f265516%2fis-there-anyway-to-move-the-cart-products-list-to-the-checkout-steps%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Create new module with required files like registration.php and etc/module.xml



          Create the .js file implementing the view model.



          Create the checkout-login-step.js file under Namespace/Module/view/frontend/web/js/view directory. Basically, we need step_code, step_title, order and the condition that allows to display this step.



          Here is the code (Read code comment to get more info)



          define(
          [
          'ko',
          'uiComponent',
          'underscore',
          'Magento_Checkout/js/model/step-navigator',
          'Magento_Customer/js/model/customer'
          ],
          function (
          ko,
          Component,
          _,
          stepNavigator,
          customer
          )
          'use strict';
          /**
          * check-login - is the name of the component's .html template
          */
          return Component.extend(
          defaults:
          template: 'Namespace_Module/check-login'
          ,

          //add here your logic to display step,
          isVisible: ko.observable(true),
          isLogedIn: customer.isLoggedIn(),
          //step code will be used as step content id in the component template
          stepCode: 'isLogedCheck',
          //step title value
          stepTitle: 'Logging Status',

          /**
          *
          * @returns *
          */
          initialize: function ()
          this._super();
          // register your step
          stepNavigator.registerStep(
          this.stepCode,
          //step alias
          null,
          this.stepTitle,
          //observable property with logic when display step or hide step
          this.isVisible,

          _.bind(this.navigate, this),

          /**
          * sort order value
          * 'sort order value' < 10: step displays before shipping step;
          * 10 < 'sort order value' < 20 : step displays between shipping and payment step
          * 'sort order value' > 20 : step displays after payment step
          */
          15
          );

          return this;
          ,

          /**
          * The navigate() method is responsible for navigation between checkout step
          * during checkout. You can add custom logic, for example some conditions
          * for switching to your custom step
          */
          navigate: function ()

          ,

          /**
          * @returns void
          */
          navigateToNextStep: function ()
          stepNavigator.next();

          );

          );


          Create an .html template for the component.



          In the above step, we use Namespace_Module/check-login as our template, let’s create it. Create a new html file named check-login.html under Namespace/Module/view/frontend/web/template directory.



          Here is the code



          <!--Use 'stepCode' as id attribute-->
          <li data-bind="fadeVisible: isVisible, attr: id: stepCode ">
          <div class="step-title" data-bind="i18n: stepTitle" data-role="title"></div>
          <div id="checkout-step-title"
          class="step-content"
          data-role="content">
          <p>The customer is <span data-bind="if: !isLogedIn">not</span> Logged-in</p>
          <form data-bind="submit: navigateToNextStep" novalidate="novalidate">
          <div class="actions-toolbar">
          <div class="primary">
          <button data-role="opc-continue" type="submit" class="button action continue primary">
          <span><!-- ko i18n: 'Next'--><!-- /ko --></span>
          </button>
          </div>
          </div>
          </form>
          </div>
          </li>


          Add the new step to the Checkout page layout.



          We need to extend the checkout page’s layout to be able to display the new step. Add this file in our module: Namespace/Module/view/frontend/layout/checkout_index_index.xml.



          The content as follow:



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceBlock name="checkout.root">
          <arguments>
          <argument name="jsLayout" xsi:type="array">
          <item name="components" xsi:type="array">
          <item name="checkout" xsi:type="array">
          <item name="children" xsi:type="array">
          <item name="steps" xsi:type="array">
          <item name="children" xsi:type="array">
          <!-- The new step you add -->
          <item name="check-login-step" xsi:type="array">
          <item name="component" xsi:type="string">Namespace_Module/js/view/checkout-login-step</item>
          <!--To display step content before shipping step "sortOrder" value should be < 1-->
          <!--To display step content between shipping step and payment step 1 < "sortOrder" < 2 -->
          <!--To display step content after payment step "sortOrder" > 2 -->
          <item name="sortOrder" xsi:type="string">2</item>
          <item name="children" xsi:type="array">
          <!--add here child component declaration for your step-->
          </item>
          </item>
          </item>
          </item>
          </item>
          </item>
          </item>
          </argument>
          </arguments>
          </referenceBlock>
          </body>
          </page>


          Reference link,
          https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_new_step.html






          share|improve this answer

























          • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

            – Manashvi Birla
            9 hours ago















          0














          Create new module with required files like registration.php and etc/module.xml



          Create the .js file implementing the view model.



          Create the checkout-login-step.js file under Namespace/Module/view/frontend/web/js/view directory. Basically, we need step_code, step_title, order and the condition that allows to display this step.



          Here is the code (Read code comment to get more info)



          define(
          [
          'ko',
          'uiComponent',
          'underscore',
          'Magento_Checkout/js/model/step-navigator',
          'Magento_Customer/js/model/customer'
          ],
          function (
          ko,
          Component,
          _,
          stepNavigator,
          customer
          )
          'use strict';
          /**
          * check-login - is the name of the component's .html template
          */
          return Component.extend(
          defaults:
          template: 'Namespace_Module/check-login'
          ,

          //add here your logic to display step,
          isVisible: ko.observable(true),
          isLogedIn: customer.isLoggedIn(),
          //step code will be used as step content id in the component template
          stepCode: 'isLogedCheck',
          //step title value
          stepTitle: 'Logging Status',

          /**
          *
          * @returns *
          */
          initialize: function ()
          this._super();
          // register your step
          stepNavigator.registerStep(
          this.stepCode,
          //step alias
          null,
          this.stepTitle,
          //observable property with logic when display step or hide step
          this.isVisible,

          _.bind(this.navigate, this),

          /**
          * sort order value
          * 'sort order value' < 10: step displays before shipping step;
          * 10 < 'sort order value' < 20 : step displays between shipping and payment step
          * 'sort order value' > 20 : step displays after payment step
          */
          15
          );

          return this;
          ,

          /**
          * The navigate() method is responsible for navigation between checkout step
          * during checkout. You can add custom logic, for example some conditions
          * for switching to your custom step
          */
          navigate: function ()

          ,

          /**
          * @returns void
          */
          navigateToNextStep: function ()
          stepNavigator.next();

          );

          );


          Create an .html template for the component.



          In the above step, we use Namespace_Module/check-login as our template, let’s create it. Create a new html file named check-login.html under Namespace/Module/view/frontend/web/template directory.



          Here is the code



          <!--Use 'stepCode' as id attribute-->
          <li data-bind="fadeVisible: isVisible, attr: id: stepCode ">
          <div class="step-title" data-bind="i18n: stepTitle" data-role="title"></div>
          <div id="checkout-step-title"
          class="step-content"
          data-role="content">
          <p>The customer is <span data-bind="if: !isLogedIn">not</span> Logged-in</p>
          <form data-bind="submit: navigateToNextStep" novalidate="novalidate">
          <div class="actions-toolbar">
          <div class="primary">
          <button data-role="opc-continue" type="submit" class="button action continue primary">
          <span><!-- ko i18n: 'Next'--><!-- /ko --></span>
          </button>
          </div>
          </div>
          </form>
          </div>
          </li>


          Add the new step to the Checkout page layout.



          We need to extend the checkout page’s layout to be able to display the new step. Add this file in our module: Namespace/Module/view/frontend/layout/checkout_index_index.xml.



          The content as follow:



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceBlock name="checkout.root">
          <arguments>
          <argument name="jsLayout" xsi:type="array">
          <item name="components" xsi:type="array">
          <item name="checkout" xsi:type="array">
          <item name="children" xsi:type="array">
          <item name="steps" xsi:type="array">
          <item name="children" xsi:type="array">
          <!-- The new step you add -->
          <item name="check-login-step" xsi:type="array">
          <item name="component" xsi:type="string">Namespace_Module/js/view/checkout-login-step</item>
          <!--To display step content before shipping step "sortOrder" value should be < 1-->
          <!--To display step content between shipping step and payment step 1 < "sortOrder" < 2 -->
          <!--To display step content after payment step "sortOrder" > 2 -->
          <item name="sortOrder" xsi:type="string">2</item>
          <item name="children" xsi:type="array">
          <!--add here child component declaration for your step-->
          </item>
          </item>
          </item>
          </item>
          </item>
          </item>
          </item>
          </argument>
          </arguments>
          </referenceBlock>
          </body>
          </page>


          Reference link,
          https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_new_step.html






          share|improve this answer

























          • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

            – Manashvi Birla
            9 hours ago













          0












          0








          0







          Create new module with required files like registration.php and etc/module.xml



          Create the .js file implementing the view model.



          Create the checkout-login-step.js file under Namespace/Module/view/frontend/web/js/view directory. Basically, we need step_code, step_title, order and the condition that allows to display this step.



          Here is the code (Read code comment to get more info)



          define(
          [
          'ko',
          'uiComponent',
          'underscore',
          'Magento_Checkout/js/model/step-navigator',
          'Magento_Customer/js/model/customer'
          ],
          function (
          ko,
          Component,
          _,
          stepNavigator,
          customer
          )
          'use strict';
          /**
          * check-login - is the name of the component's .html template
          */
          return Component.extend(
          defaults:
          template: 'Namespace_Module/check-login'
          ,

          //add here your logic to display step,
          isVisible: ko.observable(true),
          isLogedIn: customer.isLoggedIn(),
          //step code will be used as step content id in the component template
          stepCode: 'isLogedCheck',
          //step title value
          stepTitle: 'Logging Status',

          /**
          *
          * @returns *
          */
          initialize: function ()
          this._super();
          // register your step
          stepNavigator.registerStep(
          this.stepCode,
          //step alias
          null,
          this.stepTitle,
          //observable property with logic when display step or hide step
          this.isVisible,

          _.bind(this.navigate, this),

          /**
          * sort order value
          * 'sort order value' < 10: step displays before shipping step;
          * 10 < 'sort order value' < 20 : step displays between shipping and payment step
          * 'sort order value' > 20 : step displays after payment step
          */
          15
          );

          return this;
          ,

          /**
          * The navigate() method is responsible for navigation between checkout step
          * during checkout. You can add custom logic, for example some conditions
          * for switching to your custom step
          */
          navigate: function ()

          ,

          /**
          * @returns void
          */
          navigateToNextStep: function ()
          stepNavigator.next();

          );

          );


          Create an .html template for the component.



          In the above step, we use Namespace_Module/check-login as our template, let’s create it. Create a new html file named check-login.html under Namespace/Module/view/frontend/web/template directory.



          Here is the code



          <!--Use 'stepCode' as id attribute-->
          <li data-bind="fadeVisible: isVisible, attr: id: stepCode ">
          <div class="step-title" data-bind="i18n: stepTitle" data-role="title"></div>
          <div id="checkout-step-title"
          class="step-content"
          data-role="content">
          <p>The customer is <span data-bind="if: !isLogedIn">not</span> Logged-in</p>
          <form data-bind="submit: navigateToNextStep" novalidate="novalidate">
          <div class="actions-toolbar">
          <div class="primary">
          <button data-role="opc-continue" type="submit" class="button action continue primary">
          <span><!-- ko i18n: 'Next'--><!-- /ko --></span>
          </button>
          </div>
          </div>
          </form>
          </div>
          </li>


          Add the new step to the Checkout page layout.



          We need to extend the checkout page’s layout to be able to display the new step. Add this file in our module: Namespace/Module/view/frontend/layout/checkout_index_index.xml.



          The content as follow:



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceBlock name="checkout.root">
          <arguments>
          <argument name="jsLayout" xsi:type="array">
          <item name="components" xsi:type="array">
          <item name="checkout" xsi:type="array">
          <item name="children" xsi:type="array">
          <item name="steps" xsi:type="array">
          <item name="children" xsi:type="array">
          <!-- The new step you add -->
          <item name="check-login-step" xsi:type="array">
          <item name="component" xsi:type="string">Namespace_Module/js/view/checkout-login-step</item>
          <!--To display step content before shipping step "sortOrder" value should be < 1-->
          <!--To display step content between shipping step and payment step 1 < "sortOrder" < 2 -->
          <!--To display step content after payment step "sortOrder" > 2 -->
          <item name="sortOrder" xsi:type="string">2</item>
          <item name="children" xsi:type="array">
          <!--add here child component declaration for your step-->
          </item>
          </item>
          </item>
          </item>
          </item>
          </item>
          </item>
          </argument>
          </arguments>
          </referenceBlock>
          </body>
          </page>


          Reference link,
          https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_new_step.html






          share|improve this answer















          Create new module with required files like registration.php and etc/module.xml



          Create the .js file implementing the view model.



          Create the checkout-login-step.js file under Namespace/Module/view/frontend/web/js/view directory. Basically, we need step_code, step_title, order and the condition that allows to display this step.



          Here is the code (Read code comment to get more info)



          define(
          [
          'ko',
          'uiComponent',
          'underscore',
          'Magento_Checkout/js/model/step-navigator',
          'Magento_Customer/js/model/customer'
          ],
          function (
          ko,
          Component,
          _,
          stepNavigator,
          customer
          )
          'use strict';
          /**
          * check-login - is the name of the component's .html template
          */
          return Component.extend(
          defaults:
          template: 'Namespace_Module/check-login'
          ,

          //add here your logic to display step,
          isVisible: ko.observable(true),
          isLogedIn: customer.isLoggedIn(),
          //step code will be used as step content id in the component template
          stepCode: 'isLogedCheck',
          //step title value
          stepTitle: 'Logging Status',

          /**
          *
          * @returns *
          */
          initialize: function ()
          this._super();
          // register your step
          stepNavigator.registerStep(
          this.stepCode,
          //step alias
          null,
          this.stepTitle,
          //observable property with logic when display step or hide step
          this.isVisible,

          _.bind(this.navigate, this),

          /**
          * sort order value
          * 'sort order value' < 10: step displays before shipping step;
          * 10 < 'sort order value' < 20 : step displays between shipping and payment step
          * 'sort order value' > 20 : step displays after payment step
          */
          15
          );

          return this;
          ,

          /**
          * The navigate() method is responsible for navigation between checkout step
          * during checkout. You can add custom logic, for example some conditions
          * for switching to your custom step
          */
          navigate: function ()

          ,

          /**
          * @returns void
          */
          navigateToNextStep: function ()
          stepNavigator.next();

          );

          );


          Create an .html template for the component.



          In the above step, we use Namespace_Module/check-login as our template, let’s create it. Create a new html file named check-login.html under Namespace/Module/view/frontend/web/template directory.



          Here is the code



          <!--Use 'stepCode' as id attribute-->
          <li data-bind="fadeVisible: isVisible, attr: id: stepCode ">
          <div class="step-title" data-bind="i18n: stepTitle" data-role="title"></div>
          <div id="checkout-step-title"
          class="step-content"
          data-role="content">
          <p>The customer is <span data-bind="if: !isLogedIn">not</span> Logged-in</p>
          <form data-bind="submit: navigateToNextStep" novalidate="novalidate">
          <div class="actions-toolbar">
          <div class="primary">
          <button data-role="opc-continue" type="submit" class="button action continue primary">
          <span><!-- ko i18n: 'Next'--><!-- /ko --></span>
          </button>
          </div>
          </div>
          </form>
          </div>
          </li>


          Add the new step to the Checkout page layout.



          We need to extend the checkout page’s layout to be able to display the new step. Add this file in our module: Namespace/Module/view/frontend/layout/checkout_index_index.xml.



          The content as follow:



          <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
          <body>
          <referenceBlock name="checkout.root">
          <arguments>
          <argument name="jsLayout" xsi:type="array">
          <item name="components" xsi:type="array">
          <item name="checkout" xsi:type="array">
          <item name="children" xsi:type="array">
          <item name="steps" xsi:type="array">
          <item name="children" xsi:type="array">
          <!-- The new step you add -->
          <item name="check-login-step" xsi:type="array">
          <item name="component" xsi:type="string">Namespace_Module/js/view/checkout-login-step</item>
          <!--To display step content before shipping step "sortOrder" value should be < 1-->
          <!--To display step content between shipping step and payment step 1 < "sortOrder" < 2 -->
          <!--To display step content after payment step "sortOrder" > 2 -->
          <item name="sortOrder" xsi:type="string">2</item>
          <item name="children" xsi:type="array">
          <!--add here child component declaration for your step-->
          </item>
          </item>
          </item>
          </item>
          </item>
          </item>
          </item>
          </argument>
          </arguments>
          </referenceBlock>
          </body>
          </page>


          Reference link,
          https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_new_step.html







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 8 hours ago

























          answered 9 hours ago









          Vignesh BalaVignesh Bala

          205113




          205113












          • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

            – Manashvi Birla
            9 hours ago

















          • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

            – Manashvi Birla
            9 hours ago
















          While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

          – Manashvi Birla
          9 hours ago





          While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review

          – Manashvi Birla
          9 hours ago










          Ahmed Ayman is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          Ahmed Ayman is a new contributor. Be nice, and check out our Code of Conduct.












          Ahmed Ayman is a new contributor. Be nice, and check out our Code of Conduct.











          Ahmed Ayman is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f265516%2fis-there-anyway-to-move-the-cart-products-list-to-the-checkout-steps%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Best approach to update all entries in a list that is paginated?Best way to add items to a paginated listChoose Your Country: Best Usability approachUpdate list when a user is viewing the list without annoying themWhen would the best day to update your webpage be?What should happen when I add a Row to a paginated, sorted listShould I adopt infinite scrolling or classical pagination?How to show user that page objects automatically updateWhat is the best location to locate the comments section in a list pageBest way to combine filtering and selecting items in a listWhen one of two inputs must be updated to satisfy a consistency criteria, which should you update (if at all)?

          Тонконіг бульбистий Зміст Опис | Поширення | Екологія | Господарське значення | Примітки | Див. також | Література | Джерела | Посилання | Навігаційне меню1114601320038-241116202404kew-435458Poa bulbosaЭлектронный каталог сосудистых растений Азиатской России [Електронний каталог судинних рослин Азіатської Росії]Малышев Л. Л. Дикие родичи культурных растений. Poa bulbosa L. - Мятлик луковичный. [Малишев Л. Л. Дикі родичи культурних рослин. Poa bulbosa L. - Тонконіг бульбистий.]Мятлик (POA) Сем. Злаки (Мятликовые) [Тонконіг (POA) Род. Злаки (Тонконогові)]Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Description from Flora of China) [Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Опис від Флора Китаю)]Poa bulbosa L. – lipnice cibulkatá / lipnica cibulkatáPoa bulbosa в базі даних Poa bulbosa на сайті Poa bulbosa в базі даних «Global Biodiversity Information Facility» (GBIF)Poa bulbosa в базі даних «Euro + Med PlantBase» — інформаційному ресурсі для Євро-середземноморського розмаїття рослинPoa bulbosa L. на сайті «Плантариум»

          Вунгтау (аеропорт) Загальні відомості | Див. також | Посилання | Навігаційне меню10°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.0833310°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.083337731608Vinh AirportVinh airport facelift improves serviceвиправивши або дописавши їївиправивши або дописавши їїр