[Added] search controller extension (add_to_cart)

This commit is contained in:
2024-01-17 15:32:35 +01:00
parent 229cf3695f
commit 007e83909b
4 changed files with 34 additions and 3 deletions

View File

@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace D3\GoogleAnalytics4\Modules\Application\Controller;
class d3GtmSearchController extends d3GtmSearchController_parent
{
/**
* @return string
*/
public function render()
{
$return = parent::render();
if (false === in_array('oxcmp_basket', $this->getComponents())){
$this->addTplParam('d3CmpBasket', $this->getComponent('oxcmp_basket'));
}
return $return;
}
}