# Bulk Changing Product Number

**URL:** https://forum.shopware.com/t/bulk-changing-product-number/59622
**Category:** Programmierung
**Created:** [20. Mai 2019 um 06:07 UTC](https://forum.shopware.com/t/bulk-changing-product-number/59622 "2019-05-20T06:07:33Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![amr](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amr](https://forum.shopware.com/u/amr)
#### Post date: [20. Mai 2019 um 06:07 UTC](https://forum.shopware.com/t/bulk-changing-product-number/59622/1 "2019-05-20T06:07:33Z")

</div>

Hello!  
I want to bulk change and replace a string in all the products numbers and their variants&nbsp;

for example from:  
**SW** 10243 to **HK** 10243.  
I need to change SW to HK.

Is there a programatic way to do it or a plugin maybe.  
Thank you!

---

<div class="post-metadata">

### Author: ![ahmadsaad](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@ahmadsaad](https://forum.shopware.com/u/ahmadsaad)
#### Post date: [20. Mai 2019 um 06:17 UTC](https://forum.shopware.com/t/bulk-changing-product-number/59622/2 "2019-05-20T06:17:26Z")

</div>

Hallo @amr‍,

das einfachsten weg ist direkt beim Datenbank.

[https://dev.mysql.com/doc/refman/8.0/en/string-functions.html#function\_replace](https://dev.mysql.com/doc/refman/8.0/en/string-functions.html#function_replace)

[https://www.w3resource.com/mysql/string-functions/mysql-replace-function.php](https://www.w3resource.com/mysql/string-functions/mysql-replace-function.php)

VG,

Ahmad

---

<div class="post-metadata">

### Author: ![amr](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amr](https://forum.shopware.com/u/amr)
#### Post date: [20. Mai 2019 um 06:59 UTC](https://forum.shopware.com/t/bulk-changing-product-number/59622/3 "2019-05-20T06:59:13Z")

</div>

Vielen Dank!  
Ich bin mir nicht sicher, welche Tabellen in der Datenbank genau mit den Produktnummern und den Varianten zusammenhängen.  
Ich möchte sicherstellen, dass dies ohne zukünftige Probleme geschieht.  
\_\_\_\_\_\_\_\_\_\_\_  
Thanks!  
I am not sure which tables exactly in the database are related to the products numbers and the variants as well.  
I want to make sure that it will be done without causing any future problems.

---

<div class="post-metadata">

### Author: ![ahmadsaad](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@ahmadsaad](https://forum.shopware.com/u/ahmadsaad)
#### Post date: [20. Mai 2019 um 08:00 UTC](https://forum.shopware.com/t/bulk-changing-product-number/59622/4 "2019-05-20T08:00:48Z")

</div>

s\_articles\_details.

für sicherheit&nbsp;machen Sie ein backup.

VG,

Ahmad

---

<div class="post-metadata">

### Author: ![amr](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amr](https://forum.shopware.com/u/amr)
#### Post date: [23. Mai 2019 um 08:42 UTC](https://forum.shopware.com/t/bulk-changing-product-number/59622/5 "2019-05-23T08:42:16Z")

</div>

Ich habe in der Datenbank gesucht und viele dazugehörige Spalten gefunden. Ich denke also, ich muss in jeder dieser Spalten suchen und ersetzen:

s\_articles\_details  
s\_article\_configurator\_sets  
s\_article\_configurator\_templates  
s\_core\_config\_mails  
s\_core\_log  
s\_media  
s\_order\_basket  
s\_order\_details  
s\_order\_notes  
s\_search\_keywords

---

<div class="post-metadata">

### Author: ![ahmadsaad](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@ahmadsaad](https://forum.shopware.com/u/ahmadsaad)
#### Post date: [23. Mai 2019 um 18:36 UTC](https://forum.shopware.com/t/bulk-changing-product-number/59622/6 "2019-05-23T18:36:43Z")

</div>

Hallo @amr,

ich glaube du brauchst du nur ‘s\_articles\_details’ und vielleicht ‘s\_article\_configurator\_templates’

s\_article\_configurator\_sets =\> hier ist nur das Set Name und diese Related zu Artikel beim ID.

s\_core\_config\_mails =\> ich glaube du findest das Ordernummer hier in ‘context’ Spalte , ja ? die Werten sind temp Werten in diese Spalte. also du brauchst nichts zu machen hier.

s\_core\_log =\> es ist nur log info

s\_media =\> wenn du andert die Werten hier, dann du muss die Datein Namen auf Server auch anderen, also am besten hier nichts anderen.

s\_order\_basket, s\_order\_details, s\_order\_notes =\> diese die alte Bestellungen Daten,&nbsp; du kannst diese anderen, aber du kannst auch nicht machen , die nächste Bestellung werden die neue Artikel Ordernummer benutzen.

s\_search\_keywords =\> nach anderen das Ordernummer in \_details Table du kannst einfach das search keywords neue aufbauen von :

Einstellungen \> Cash/Performance \> Einstellungen(Reiter)\> Suche (Links)

VG,

Ahmad

&nbsp;
