-
replace requirement in
composer.json:- from
"threebrs/sylius-zasilkovna-plugin": "^3.3"
- to
"threebrs/sylius-packeta-plugin": "^4.0"
- from
-
replace every occurence of
SyliusZasilkovnaPlugintoSyliusPacketaPlugin- for example
imports: - { resource: "@ThreeBRSSyliusPacketaPlugin/Resources/config/config.{yml,yaml}" }
- for example
-
replace
ThreeBRS\SyliusZasilkovnaPlugin\ThreeBRSSyliusZasilkovnaPlugin::classtoThreeBRS\SyliusPacketaPlugin\ThreeBRSSyliusPacketaPlugin::classinconfig/bundles.php -
replace class names in your code:
ThreeBRS\SyliusZasilkovnaPlugin\Model\ZasilkovnaShipmentInterfacetoThreeBRS\SyliusZasilkovnaPlugin\Model\ZasilkovnaShipmentTraitThreeBRS\SyliusPacketaPlugin\Model\PacketaShipmentInterfacetoThreeBRS\SyliusPacketaPlugin\Model\PacketaShipmentTraitThreeBRS\SyliusZasilkovnaPlugin\Model\ZasilkovnaShippingMethodInterfacetoThreeBRS\SyliusZasilkovnaPlugin\Model\ZasilkovnaShippingMethodTraitThreeBRS\SyliusPacketaPlugin\Model\PacketaShippingMethodInterfacetoThreeBRS\SyliusPacketaPlugin\Model\PacketaShippingMethodTrait
- create SQL migration to rename related table and columns
-- MySQL
RENAME TABLE threebrs_zasilkovna_config TO threebrs_packeta_config;
-- PostgreSQL
-- ALTER TABLE threebrs_zasilkovna_config RENAME TO threebrs_packeta_config;
ALTER TABLE sylius_shipment RENAME COLUMN zasilkovna TO packeta;
ALTER TABLE sylius_shipping_method RENAME COLUMN zasilkovna_config TO packeta_config;- hint: you can also configure your entities to keep using legacy table name and column names
Note: the @ThreeBRSSyliusZasilkovnaPlugin/Admin/Common/Order/_addresses.html.twig has been removed. All GUI changes are made by Sylius Twig hooks, see twig_hooks.yaml