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.
This commit is contained in:
36
modules/inpostizi/upgrade/upgrade-2.0.2.php
Normal file
36
modules/inpostizi/upgrade/upgrade-2.0.2.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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();
|
||||
}
|
||||
Reference in New Issue
Block a user