Files
wyczarujprezent.pl/modules/inpostizi/upgrade/upgrade-2.0.2.php
Jacek Pyziak 4066f6fa31 Add InPost Pay integration to admin templates
- Created a new template for the cart rule form with custom label, switch, and choice widgets.
- Implemented the InPost Pay block in the order details template for displaying delivery method, APM, and VAT invoice request.
- Added legacy support for the order details template to maintain compatibility with older PrestaShop versions.
2025-09-14 14:38:09 +02:00

37 lines
656 B
PHP

<?php
use InPost\Izi\Upgrade\AssetsRemoverTrait;
if (!defined('_PS_VERSION_')) {
exit;
}
require_once __DIR__ . '/AssetsRemoverTrait.php';
class InPostIziUpdater_2_0_2
{
use AssetsRemoverTrait;
private const STALE_ASSETS = [
'js/front/v2.bcd9fca64e00b4978766.js',
];
public function __construct(Module $module)
{
$this->module = $module;
}
public function upgrade(): bool
{
return $this->removeStaleAssets(self::STALE_ASSETS);
}
}
/**
* @param InPostIzi $module
*/
function upgrade_module_2_0_2(Module $module): bool
{
return (new InPostIziUpdater_2_0_2($module))->upgrade();
}