Skip to content

Commit

Permalink
Merge pull request #119 from Progi1984/fixDisplayGDPRConsent
Browse files Browse the repository at this point in the history
Use quickview with the  hook `displayGDPRConsent`
  • Loading branch information
Progi1984 authored Nov 29, 2021
2 parents 3adfcfb + 5f4d9c3 commit 7b5cbac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion productcomments.php
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,9 @@ public function renderWidget($hookName = null, array $configuration = [])
$idProduct = $this->context->controller->getProduct()->id;
$variables = $this->getWidgetVariables($hookName, ['id_product' => $idProduct]);

$filePath = 'quickview' === Tools::getValue('action') ? $tplHookPath . 'product-additional-info-quickview.tpl' : $tplHookPath . 'product-additional-info.tpl';
$filePath = 'quickview' === Tools::getValue('action') || 'displayGDPRConsent' === $hookName
? $tplHookPath . 'product-additional-info-quickview.tpl'
: $tplHookPath . 'product-additional-info.tpl';
}

if (empty($variables) || empty($filePath)) {
Expand Down

0 comments on commit 7b5cbac

Please sign in to comment.