Sklik conversion

Verze:

01. 09. 2022

Zodpovědná osoba:

Dominik Šlechta

The best version is currently on briol.cz.

To make it work, you need to transfer the sendZbozi function from the Basket.php trait (in briol it is here: \App\HelperTrait\Basket::sendZbozi), then you need to call this function in the \App\HelperTrait\Basket::renderBasketFinal function in if($hash) { .... The call then looks like this:

$this->sendZbozi($order, $diff);


Next copy ZboziKonverze.php (in briol here: app/Utils/ZboziKonverze.php)

Then the remaining functions that are still there will have to be transferred.

Then you need to go to app/presenters/Front/templates/Homepage/basket/final.latte and at the bottom in the sub-menu "{if $orderId != 'nofound' && $isProduction}" you need to insert a variable with noescape, which is created for the template in the sendZbozi function and is called $zboziConversion

{$zboziConversion|noescape}


Finally, you need to create the votes that are written in PhpDocs for the sendZbozi function.