Home > widget-integration > CartDrawerRecommendationController > showErrorMessage

CartDrawerRecommendationController.showErrorMessage() method

Show an error message on a recommendation item.

Signature:

protected showErrorMessage(productItem: HTMLElement | null, message: string): void;

Parameters

Parameter

Type

Description

productItem

HTMLElement | null

The recommendation product item element

message

string

The error message to display

Returns:

void