async addToCart(oBundlePromise, oProduct, oCartModel) {
			// Items to be added from the welcome view have it's content inside product object
			if (oProduct.Product !== undefined) {
				oProduct = oProduct.Product;
			}
			const oResourceBundle = await oBundlePromise;
			switch (oProduct.Status) {
				case "D":
					//show message dialog
					MessageBox.show(
						oResourceBundle.getText("productStatusDiscontinuedMsg"), {
						icon: MessageBox.Icon.ERROR,
						titles: oResourceBundle.getText("productStatusDiscontinuedTitle"),
						actions: [MessageBox.Action.CLOSE]
					});
					break;
				case "O":
					// show message dialog
					MessageBox.show(
						oResourceBundle.getText("productStatusOutOfStockMsg"), {
						icon: MessageBox.Icon.QUESTION,
						title: oResourceBundle.getText("productStatusOutOfStockTitle"),
						actions: [MessageBox.Action.OK, MessageBox.Action.CANCEL],
						onClose: (oAction) => {
							// order
							if (MessageBox.Action.OK === oAction) {
								this._updateCartItem(oResourceBundle, oProduct, oCartModel);
							}
						}
					});
					break;
				case "A":
				default:
					this._updateCartItem(oResourceBundle, oProduct, oCartModel);
					break;
			}
		}
Checks for the status of the product that is added to the cart.
If the product is not available, a message dialog will open.
@param {Object} oBundlePromise a promise that resolves with an i18n bundle
@param {Object} oProduct Product that is added to the cart
@param {Object} oCartModel Cart model