Ne pas oublier de vérifier si les tables nécessaires sont bien créées en BDD.
27 lines
671 B
PHP
27 lines
671 B
PHP
<?php
|
|
|
|
namespace ColissimoLabel\Hook\Back;
|
|
|
|
use ColissimoLabel\ColissimoLabel;
|
|
use Thelia\Core\Event\Hook\HookRenderEvent;
|
|
use Thelia\Core\Hook\BaseHook;
|
|
|
|
/**
|
|
* @author Gilles Bourgeat >gilles.bourgeat@gmail.com>
|
|
*/
|
|
class OrderEditHook extends BaseHook
|
|
{
|
|
public function onOrderEditJs(HookRenderEvent $event)
|
|
{
|
|
$event->add($this->render(
|
|
'colissimo-label/hook/order-edit-js.html',
|
|
array_merge(
|
|
$event->getArguments(),
|
|
[
|
|
'preFillWeightInput' => ColissimoLabel::getConfigValue(ColissimoLabel::CONFIG_KEY_PRE_FILL_INPUT_WEIGHT)
|
|
]
|
|
)
|
|
));
|
|
}
|
|
}
|