Jump to content

Edit History

roo10

roo10

I'm working on localhost.

I checked the module's TPL and JS files but couldn't find the solution and even the browser console isn't showing any errors.

Edit: I tried editing "productcomments.php" file and the contents are displayed after removing lines 941 to 943 (code below).

Of course, the smarty variables are empty in "product-list-reviews.tpl" file since we removed its required code but just want to inform that these 3 lines are causing this problem.

public function hookDisplayProductListReviews($params)
    {
        ..........
	/* Lines 941 to 943 */
        $productCommentRepository = $this->context->controller->getContainer()->get('product_comment_repository');
        $commentsNb = $productCommentRepository->getCommentsNumber($product->getId(), Configuration::get('PRODUCT_COMMENTS_MODERATE'));
        $averageGrade = $productCommentRepository->getAverageGrade($product->getId(), Configuration::get('PRODUCT_COMMENTS_MODERATE'));

        ..........
    }

 

roo10

roo10

I'm working on localhost.

I checked the module's TPL and JS files but couldn't find the solution and even the browser console isn't showing any errors.

Edit: I tried editing productcomments.php file and the contents are displayed after removing lines 941 to 943 (code below).

Of course, the smarty variables are empty in "product-list-reviews.tpl" file since we removed its required code but just want to inform that these 3 lines are causing this problem.

public function hookDisplayProductListReviews($params)
    {
        ..........
	/* Lines 941 to 943 */
        $productCommentRepository = $this->context->controller->getContainer()->get('product_comment_repository');
        $commentsNb = $productCommentRepository->getCommentsNumber($product->getId(), Configuration::get('PRODUCT_COMMENTS_MODERATE'));
        $averageGrade = $productCommentRepository->getAverageGrade($product->getId(), Configuration::get('PRODUCT_COMMENTS_MODERATE'));

        ..........
    }

 

roo10

roo10

I'm working on localhost.

I checked the module's TPL and JS files but couldn't find the solution and even the browser console isn't showing any errors.

×
×
  • Create New...