Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi , we would like to change checkout process so that one initial step is run every time customer be

Options
U02U5UPHUC8
U02U5UPHUC8 Posts: 13 🧑🏻‍🚀 - Cadet

Hi , we would like to change checkout process so that one initial step is run every time customer begins with checkout.

  • we need this step to be called only once in the beginning, it should not iterate on every subsequent step.

  • when customer exits checkout (goes on the homepage for example) and then starts with the checkout again, this step should be called.

Is there any elegant solution for this?

Thanks in advance

Comments

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet
    Options

    Hi, there are pre and post condition around which are controlling if the step will be executed or not

  • U02U5UPHUC8
    U02U5UPHUC8 Posts: 13 🧑🏻‍🚀 - Cadet
    Options

    Thanks Julian for response, I tried this, but the problem is: When this beginning step is marked as successful once in postCondition, then it would not be called again even if I exit checkout and then start with the process again.

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet
    Options

    So your problem is, that the init step wont be called again if the customer leaves the checkout?

  • U02U5UPHUC8
    U02U5UPHUC8 Posts: 13 🧑🏻‍🚀 - Cadet
    Options

    Yes this is the problem

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet
    Options

    you tryed resetting the init stuff on other controller?

  • U02U5UPHUC8
    U02U5UPHUC8 Posts: 13 🧑🏻‍🚀 - Cadet
    Options

    What do you mean by other controller

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet
    Options

    for example the CatalogController etc.

  • U02U5UPHUC8
    U02U5UPHUC8 Posts: 13 🧑🏻‍🚀 - Cadet
    Options

    Thanks will try