# Update

Tipp

Before updating the plugin, empty the Shopware cache.

# Update 5.5.0

As of this version, the reduceShippingCosts field has been removed. The function is configured via another field. When updating, the fields are automatically adjusted, but when importing, mapping to the field will no longer work. Please check your import file and follow the updated instructions.

# Error message during update

In a few cases, an error message appears during the update of the plug-in:

WARNING

NetInventors\NetiNextEasyCoupon\Service\PluginConfig::__construct(): Argument #1 ($pluginConfigFactory) must be of type NetInventors\NetiNextEasyCoupon\Service\PluginConfigFactory, Shopware\Core\System\SystemConfig\SystemConfigService given, called in XYZ/var/cache/dev_hb843ff26c1620bd5654852f86d864c76/Container1D1Nixs/Shopware_Production_KernelDevDebugContainer.php on line 25598

To update the plugin, the Shopware cache must be cleared. You have the following options:

  • Administration Administration > System > Cache & Indizies: Caches leeren
  • Console: bin/console cache:clear

# Currency factors update (since 4.21.0)

In this version, an error has been fixed where incorrect currency factors were previously stored in vouchers and transactions.

For old vouchers, however, no automatic fix can be performed, because it must be assumed that the currency factor may have changed - and thus the voucher value would be falsified.

Therefore, the following SQL is provided to perform the fix manually:

-- QUERY 1

UPDATE neti_easy_coupon ec
LEFT JOIN currency c ON c.id = ec.currency_id
SET ec.value = (ec.value / c.factor), ec.currency_factor = c.factor
WHERE ec.currency_factor != c.factor
  AND ec.currency_factor > 0;

-- QUERY 2

UPDATE neti_easy_coupon_transaction t
LEFT JOIN currency c on c.id = t.currency_id
SET t.value = (t.value / c.factor), t.currency_factor = c.factor
WHERE t.currency_factor != c.factor
  AND t.currency_factor > 0;

-- QUERY 3

UPDATE neti_easy_coupon_transaction t
LEFT JOIN neti_easy_coupon c on c.id = t.easy_coupon_id
SET t.voucher_currency_factor = c.currency_factor
WHERE t.voucher_currency_factor != c.currency_factor;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

# Bugfix #41798

In version 4.22.0, a separate tax rate 0% was added for the multipurpose vouchers. The previously used tax from Shopware caused errors because they had country restrictions in the default.

In the update process, for all purchase vouchers with tax rate = 0, the tax will be replaced with the newly created tax. If purchase vouchers exist where a tax rate > 0 was stored, this should be adjusted manually.