Versions Compared

Key

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

Table of Contents

Table of Contents
stylenone

...

How the Complete Your Menu is configured today?

Today, the complete your menu is configured using the “Combo Slot” feature that already exists on Sanity, and this configuration is available for all kinds of items (combo/picker, etc)

...

Usually we see the complete your menu as the last option in the menu items customizable options, but this can be changed if we change the order of the list on Sanity.

...

...

What can be customized?

In general, we’ll have the same customization that we can have in a Combo Slot item:

  • What can be changed:

    • The “Do you want to Complete your Menu” title

    • All items can be configured as desired

    • The items inside “complete your menu” can be “premium items” or not. This can be configured as desired

    • The maximum and/or minimum amount. This will be the available quantity that the user can select

    • The complete your menu can be positioned by ordering the list on Sanity

...

About the “No, thanks”

Today, “No, thanks” is just a “dumb” option that will mean that the user doesn’t selected any value to complete his menu. This option is configured to be the default and will always be selected. Considerations:

  • As this is already a customizable option, we can change it to be as we want (change the icon image, text, and so on)

...

Visibility and UI Pattern configurations

This configuration will only work for These configuration was developed thinking on the “old legacy menu design” and will not have any effect on bring much value for the new menu customization that we are using today. This is controlled by a feature flag (enable-new-menu-customization-design).

...

image-20240326-215949.png

For the UI pattern, we can at least use this as a toggle to hide or show the complete your menu (for example, if we have some problems with this option, we can easily hide it using the “hidden” option). The other values will not bring any value for what we want here.

...

Header Configuration

We can also use a feature flag (enable-product-upsell-simplified) to enable/disable the Combo Slot header. If the flag is FALSE/OFF, this header will appear for all Combo Slots on the screen (as the complete your menu is a Combo Slot this will be shown for him too).

...

If the flag is ON then we’ll see the simplified version of this list (the most common that we are using today):

...

To have premium options are sorted in the first position inside Combo Slot

As stated in this document, to have the premium options in first position, we have a new feature flag (enable-premium-options-at-first-position) that depends on the enable-product-upsell-simplified (that needs to be ON).

...