Cart & Checkout Attributes: Installation
Composer installation via Packeton, bundle and route registration, setup command, update and uninstallation for the Sylius plugin.
Cart & Checkout Attributes: Installation
Installation
This repository is private and managed via Packeton (
https://packeton.markus-michalski.net). Credentials are provided after license purchase/approval.
- Add the Packeton repository and require the package:
{ "repositories": [{ "type": "composer", "url": "https://packeton.markus-michalski.net" }] }
composer require mmd/sylius-cart-checkout-attributes-plugin
- Register the bundle in
config/bundles.php:
Mmd\SyliusCartCheckoutAttributesPlugin\MmdSyliusCartCheckoutAttributesPlugin::class => ['all' => true],
- Import the admin route. The plugin ships only one admin route (
config/routes/admin.yaml), which must be imported manually - without this import the admin sidebar entry simply stays hidden, no error is raised:
mmd_sylius_cart_checkout_attributes_plugin_admin:
resource: "@MmdSyliusCartCheckoutAttributesPlugin/config/routes/admin.yaml"
The plugin's Shop API endpoints need no route import - they are registered automatically as API Platform resources.
- Run the setup command. It runs only this plugin's own pending migrations, nothing from the app or other plugins:
bin/console mmd:cart-checkout-attributes:setup
What the command does:
- checks whether the admin route from step 3 is imported, and otherwise prints the snippet again (it never writes to
config/itself) - aborts if Sylius core migrations are still pending, telling you to run
doctrine:migrations:migratefirst - then runs only this plugin's own migrations (
doctrine:migrations:execute --up) - is idempotent: with no new migration, nothing happens, so it is safe to run again after every
composer update - asks for interactive confirmation; pass
--no-interactionin scripts
The plugin ships no assets (JS/CSS) of its own, so assets:install is not needed for it.
Update
composer update mmd/sylius-cart-checkout-attributes-plugin
bin/console mmd:cart-checkout-attributes:setup
bin/console cache:clear
The setup command is idempotent and can safely be run again after every update.
Uninstallation
- Remove any custom overrides of the
@SyliusAttribute/Types/*.html.twigpartials, if you added any. - Roll back the migrations while the bundle is still registered - newest first:
bin/console doctrine:migrations:execute --down 'Mmd\SyliusCartCheckoutAttributesPlugin\Migrations\Version20260918090000'
bin/console doctrine:migrations:execute --down 'Mmd\SyliusCartCheckoutAttributesPlugin\Migrations\Version20260917130000'
bin/console doctrine:migrations:execute --down 'Mmd\SyliusCartCheckoutAttributesPlugin\Migrations\Version20260917090000'
- Remove the route import from installation step 3 and the bundle entry from
config/bundles.php. - Remove the package:
composer remove mmd/sylius-cart-checkout-attributes-plugin