Markus Michalski FAQ

Cart & Checkout Attributes: Installation

Composer installation via Packeton, bundle and route registration, setup command, update and uninstallation for the Sylius plugin.

Deutsche Version

Back to overview

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.

  1. 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
  1. Register the bundle in config/bundles.php:
Mmd\SyliusCartCheckoutAttributesPlugin\MmdSyliusCartCheckoutAttributesPlugin::class => ['all' => true],
  1. 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.

  1. 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:

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

  1. Remove any custom overrides of the @SyliusAttribute/Types/*.html.twig partials, if you added any.
  2. 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'
  1. Remove the route import from installation step 3 and the bundle entry from config/bundles.php.
  2. Remove the package:
composer remove mmd/sylius-cart-checkout-attributes-plugin