Versions Compared

Key

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

...

  • The PLU item needs to exist in the restaurant PLU data (PLU with price)

  • If the item doesn't exist in the selected store data (when using the Whitelabel app) the app will alert the user that the item is unavailable (when the item is added in the cart preview or added inside the checkout, for example)

  • The restaurant data is not available to be configured inside Sanity. This needs to be done somewhere else .(perhaps, where we configure the POS data for restaurants)

...

Technical Analysis

For each restaurant, we'll have the restaurantPosData returned from the usePosDataQuery. This will be where we get the prices object for all PLUs available for the user selected store.

...