|null * @throws LocalizedException */ public function beforeAddProduct(Cart $subject, $productInfo, $requestInfo = null): ?array { if ($this->testModeConfig->isRestricted()) { throw new LocalizedException( __('Our website is currently in beta testing. Purchases are not available at this time.') ); } return null; } }