/// <summary> /// Checks, whether current document is product type. If not, hides webpart on live site and show warning in design. /// </summary> /// <returns>True if current document is product type, false otherwise</returns> private bool CheckForProductPage() { if (CurrentDocument.IsProduct()) { return(true); } HandleError(GetString("strands.recommendations.product.wrongdocument")); return(false); }