Home > widget-integration > CountdownTimerModule > getCartDrawerTimerScope

CountdownTimerModule.getCartDrawerTimerScope() method

Returns the placement scope used when fetching the timer campaign for the cart drawer.

Signature:

protected getCartDrawerTimerScope(): CountdownPlacement;

Returns:

CountdownPlacement

The scope string passed to the API to filter campaigns.

Example

Override to use cart_page scope for shops that render a full-page cart drawer:

protected getCartDrawerTimerScope(): CountdownPlacement {
  return 'cart_page';
}