2014-04-22 3 views
0

나는 내가제품을 클릭 할 때 삽입 방법을 호출하는 방법은 무엇입니까?

nopCommerce_3.20_Source\Libraries\Nop.Services\Catalog\ProductService.cs 

public virtual void InsertMostViewProduct(MostViewProduct product) 
{ 
     if (product == null) 
      throw new ArgumentNullException("product"); 
     //insert 
     _mostviewRepository.Insert(product); 

     //clear cache 
     _cacheManager.RemoveByPattern(PRODUCTS_PATTERN_KEY); 

     //event notification 
     _eventPublisher.EntityInserted(product); 

} 

내 질문은 내가,이 메소드를 호출 할 필요가 어떻게 제품을 클릭 할 때이다에 그것을 위해 삽입 방법을 하였다 카테고리 페이지에서 10 가장 많이 본 제품을 표시 할 그 항목은 데이터베이스에 저장합니까?

알려 주시기 바랍니다.

답변

0

가장 많이 본 제품 10 개를 표시하는 데 대한 첫 번째 질문을 추적했습니다.

당신은 제품의 서비스 및 제품 동작의 제품 서비스에 새로 만든 방법이라고 추가 할해야하는 Nop.Web 프로젝트의 카탈로그 컨트롤러에이 기능을 추가 할 필요가