The v2 is now compatible with Sylius 2.x, so you need to update your Sylius version to 2.x before upgrading the plugin. Some changes not listed here may be required, so please refer to the Sylius 2.x upgrade guide for more details.
- The route
@WebgriffeSyliusTableRateShippingPlugin/Resources/config/config.ymlhas been renamed to@WebgriffeSyliusTableRateShippingPlugin/config/config.yaml. - The route
@WebgriffeSyliusTableRateShippingPlugin/Resources/config/admin_routing.ymlhas been renamed to@WebgriffeSyliusTableRateShippingPlugin/config/routes/admin.yaml. - The route
webgriffe_sylius_table_rate_shipping_plugin_shophas been removed as it was unnecessary - The migrations are now stored inside the plugin in
src/Migrations. These should be idempotent, so if the changes made by these migrations are already present, they will do nothing. - Important template changes:
- Template
@WebgriffeSyliusItalianInvoiceableOrderPlugin/Common/_invoiceableAddressInfo.html.twighas been renamed to@WebgriffeSyliusItalianInvoiceableOrderPlugin/shared/address/billingAddressInfo.html.twig - Template
@WebgriffeSyliusItalianInvoiceableOrderPlugin/Checkout/Address/_addressBookSelectInvoiceableDataAttributes.html.twighas been removed as Sylius 2 uses UI component for this, so you can remove this template as it is no longer needed. If you have customized this template, you can move the customizations to the new UI component. If you are using the Sylius Legacy Bundle you can still use this template, here is the latest implemenation:data-billing-recipient-type="{{ address.billingRecipientType }}" data-tax-code="{{ address.taxCode }}" data-vat-number="{{ address.vatNumber }}" data-sdi-code="{{ address.sdiCode }}" data-pec-address="{{ address.pecAddress }}"
- Template
- The service
app.taxation.italian_tax_calculation_strategyhas been renamed towebgriffe_sylius_italian_invoiceable_order.strategy.taxation.tax_calculation.italian_tax_calculation_strategy. - The class
Webgriffe\SyliusItalianInvoiceableOrderPlugin\Model\ItalianTaxCalculationStrategyhas been moved toWebgriffe\SyliusItalianInvoiceableOrderPlugin\Taxation\ItalianTaxCalculationStrategy. - The package
sandwich/vies-bundlehas been removed. - The constraint
Symfony\Component\Validator\Constraints\Sandwich\ViesBundle\Validator\Constraint\VatNumberhas been replaced withWebgriffe\SyliusItalianInvoiceableOrderPlugin\Validator\Constraints\EuropeanVatNumber. Please update your validation rules accordingly with search and replace. Please, note also that now is available a new strict option that allows you to block the checkout step if the VIES service is not available. You can enable it by setting thestrictoption totruein your validation rules. - The file
@WebgriffeSyliusItalianInvoiceableOrderPlugin/config/config.yamlhas been renamed to@WebgriffeSyliusItalianInvoiceableOrderPlugin/config/config.php. - The parameter
app.taxation.eu_zone_codehas been renamed towebgriffe_sylius_italian_invoiceable_order.taxation.eu_zone_code.