Quelques nouveaux fichiers et modules en conf

This commit is contained in:
2021-01-25 18:42:52 +01:00
parent 9b4d5e339b
commit af1552b390
212 changed files with 38073 additions and 817 deletions

View File

@@ -0,0 +1,36 @@
<?php
namespace OrderComment\Loop;
use Thelia\Core\Template\Element\ArraySearchLoopInterface;
use Thelia\Core\Template\Element\BaseLoop;
use Thelia\Core\Template\Element\LoopResult;
use Thelia\Core\Template\Element\LoopResultRow;
use Thelia\Core\Template\Loop\Argument\ArgumentCollection;
class SessionOrderCommentLoop extends BaseLoop implements ArraySearchLoopInterface
{
public function buildArray()
{
$item = ['comment' => $this->request->getSession()->get('order-comment')];
return $item;
}
public function parseResults(LoopResult $loopResult)
{
$item = $loopResult->getResultDataCollection();
$loopResultRow = new LoopResultRow();
$loopResultRow->set('ORDER_COMMENT', $item['comment']);
$loopResult->addRow($loopResultRow);
return $loopResult;
}
public function getArgDefinitions()
{
return new ArgumentCollection();
}
}