# Wie ändere ich eine Konfigurationsvariable

**URL:** <https://forum.shopware.com/t/wie-andere-ich-eine-konfigurationsvariable/66508>\
**Category:** Programmierung\
**Created:** [25. April 2020 um 22:50 UTC](https://forum.shopware.com/t/wie-andere-ich-eine-konfigurationsvariable/66508 "2020-04-25T22:50:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShopwareKonig](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@ShopwareKonig](https://forum.shopware.com/u/ShopwareKonig)\
**Post date:** [25. April 2020 um 22:50 UTC](https://forum.shopware.com/t/wie-andere-ich-eine-konfigurationsvariable/66508/1 "2020-04-25T22:50:01Z")

</div>

Hallo Leute,

ich versuche eine Config Variable mittels Programmcode zu ändern.

Lesen kann ich sie mit: $ips = Shopware()-\>Config()-\>Get( **‘offlineIp’** );

Leider habe ich keine Ahnung wie ich die Variable dauerhaft ändern kann. Ich habe es schon versucht mit:

```
 Shopware()-\>Config()-\>setOfflineIp($ips);

 Shopware()-\>Config()-\>offsetSet( **'offlineIp'** , $ips);

```

Hat jemand eine Tip für mich?

&nbsp;
