- 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.
48 lines
1.6 KiB
YAML
48 lines
1.6 KiB
YAML
# common BO configuration
|
|
imports:
|
|
- { resource: admin/form.yml }
|
|
- { resource: admin/form.php, ignore_errors: true }
|
|
|
|
services:
|
|
izi\prestashop\View\Asset\AssetManagerInterface: '@izi\prestashop\View\Asset\AdminAssetManager'
|
|
izi\prestashop\View\Asset\AdminAssetManager:
|
|
class: izi\prestashop\View\Asset\AdminAssetManager
|
|
public: false
|
|
arguments:
|
|
- '@inpost.izi.module'
|
|
- '@inpost.izi.context'
|
|
|
|
izi\prestashop\View\Asset\Provider\Admin\CartRulesAssetsProvider:
|
|
class: izi\prestashop\View\Asset\Provider\Admin\CartRulesAssetsProvider
|
|
public: false
|
|
tags:
|
|
- { name: inpost.izi.admin_assets_provider }
|
|
arguments:
|
|
- '@inpost.izi.context'
|
|
- '@inpost.izi.request_stack'
|
|
|
|
izi\prestashop\Handler\Config\UpdateCartRuleOptionsHandlerInterface: '@izi\prestashop\Handler\Config\UpdateCartRuleOptionsHandler'
|
|
izi\prestashop\Handler\Config\UpdateCartRuleOptionsHandler:
|
|
class: izi\prestashop\Handler\Config\UpdateCartRuleOptionsHandler
|
|
public: false
|
|
tags:
|
|
- { name: inpost.izi.command_handler }
|
|
arguments:
|
|
- '@izi\prestashop\PromoCode\CartRuleOptionsRepositoryInterface'
|
|
|
|
izi\prestashop\Form\Type\CartRuleOptionsType:
|
|
class: izi\prestashop\Form\Type\CartRuleOptionsType
|
|
tags:
|
|
- { name: form.type }
|
|
arguments:
|
|
- '@izi\prestashop\Translation\LegacyTranslator'
|
|
- '@inpost.izi.context'
|
|
|
|
izi\prestashop\Form\Type\ObjectModelType:
|
|
class: izi\prestashop\Form\Type\ObjectModelType
|
|
tags:
|
|
- { name: form.type }
|
|
arguments:
|
|
- '@izi\prestashop\ObjectModel\ObjectManagerInterface'
|
|
- '@inpost.izi.context'
|