Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
stylenone

...

Document Status

Status
colourBlueGreen
titleProposal under REVIEWREVIEWED AND APPROVED

Document Owner(s)

Augusto Romao, Vinicius

Reviewers

...

Context and epic

...

Business problem to be solved

Currently, the new upsell modal is shown for all item types (Item, Combo, Picker, etc.)

Iberia aims to enhance the upsell rate and user experience by gaining more control over the new upsell modal trigger behavior. They plan to display the modal only for selected item types, such as Combo or Picker.

We'll also keep the same behavior for the first journey rule:

  • Show the modal only once per journey. For example:

    • The user adds a type Item to the cart -> The modal will not be shown

    • The user now adds a second item that is type Combo -> The modal will be shown

    • If the user decides to add another type Combo/Picker -> We'll not show the modal because the user already saw it on this first journey (in the same cart)

Proposal

File to be changed: src/state/order/index.js

...

The code below can exemplify how things will be. Of course, this is just an example and will not represent the final solution.

...

  • Upsell modal will only be shown for Pickers/Combos (if the new logic is enabled at Sanity)

  • When I’ve created a new journey, cleaning the cart and adding a Coca-Cola, the modal did not show as expected because Coca-Cola is a type of item Item

Sanity to hold the new trigger behavior configuration

...

  • This Flexible is a flexible solution. Can be extended or changed with a friendly user UI

...