Markus Michalski FAQ

Variant Price Surcharge: Installation and Operation

Installing, updating and uninstalling the Shopware 6 plugin Variant Price Surcharge (MmdVariantPriceSurcharge) via the Shopware Store, ZIP upload or Composer, including requirements and uninstall behaviour.

Deutsche Version

Back to overview

Installation and Operation

Requirements

Requirement Version Note
Shopware shopware/core ~6.6.0 or ~6.7.0 Both lines are allowed by the plugin's composer.json
PHP >= 8.2
Plugin class Mmd\VariantPriceSurcharge\MmdVariantPriceSurcharge Technical plugin name: MmdVariantPriceSurcharge
Composer package mmd/sw6-variant-price-surcharge Type shopware-platform-plugin

Installation

  1. Purchase the plugin in the Shopware Store
  2. In the Shopware Admin under Extensions > My Extensions, install and activate the plugin
  3. Clear the cache

Via ZIP upload

  1. Upload the ZIP file in the admin under Extensions > My Extensions.
  2. Install and activate the plugin.
  3. Clear the cache.

Via Composer

1. Add the private repository

Add the private Composer repository to your shop's composer.json:

{
    "repositories": [
        {
            "type": "composer",
            "url": "https://packeton.markus-michalski.net"
        }
    ]
}

You receive the repository credentials after purchasing the license.

2. Install the package

composer require mmd/sw6-variant-price-surcharge

3. Install and activate the plugin

bin/console plugin:refresh
bin/console plugin:install --activate MmdVariantPriceSurcharge
bin/console cache:clear

What happens on installation

The migration creates a custom field set with the technical name mmd_variant_price_surcharge and the label "Variant Price Surcharge". It is assigned to products and contains the three fields mmd_surcharge_enabled, mmd_surcharge_percentage and mmd_surcharge_fixed. See Configuration for details.

The plugin creates no database tables of its own and ships no admin module, role permissions or storefront templates.

Update

composer update mmd/sw6-variant-price-surcharge
bin/console plugin:update MmdVariantPriceSurcharge
bin/console cache:clear

For an installation through the Store, update the extension under Extensions > My Extensions.

The migration checks whether the custom field set already exists and does not create it twice.

Uninstall

When uninstalling in the admin you decide whether user data is kept.

Choice Result
Keep user data The plugin cleans up nothing, the custom field set and settings remain
Do not keep user data The custom field set, its three fields, the product assignment and all plugin settings (MmdVariantPriceSurcharge.config.*) are deleted

Values you saved in these fields on individual products stay in the product record even without the plugin. They no longer have any effect.