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:
19
modules/inpostizi/upgrade/AssetsRemoverTrait.php
Normal file
19
modules/inpostizi/upgrade/AssetsRemoverTrait.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace InPost\Izi\Upgrade;
|
||||
|
||||
require_once __DIR__ . '/FileRemoverTrait.php';
|
||||
|
||||
trait AssetsRemoverTrait
|
||||
{
|
||||
use FileRemoverTrait;
|
||||
|
||||
private function removeStaleAssets(array $paths): bool
|
||||
{
|
||||
return $this->removeFiles(array_map(static function (string $path): string {
|
||||
return 'views/' . $path;
|
||||
}, $paths));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user