NETZchecker Posted June 2, 2020 Share Posted June 2, 2020 Hallo zusammen, ich habe ein Riesen Problem. Ich hab vom Lieferanten eine falsche Liste bekommen in der falsche Preise standen. Angegeben mit Brutto, waren aber Netto Preise. Nun ja jetzt hab ich meine 20.000 Artikel importier. Immer schön gestaffelt das ja nix schief geht und habe überall die falschen Preise. Es gehören überall 20% dazu. Ich will den Import nicht noch mal machen, war ne extrem Arbeit. Ich habe schon 2 Module gekauft und probiert, ohne Erfolg: 1. Massenpreis -Update von FMM Modules - das Modul funktioniert aber nur wenn es keine Varianten gibt. Also 50 Euro für die Katz. 2. Dann noch Massenpreisänderungs-Assistent von v1.6.10 - von compline - das kackt sowieso gleich ab mit einem 500er Fehler. 60 Euro für die Katz Super Sache ist das. Ich hab die Entwickler kontaktiert, schon vor ein paar Tagen. Aber leider keine Antwort. Hat jemand einen Tipp wie ich das Lösen kann oder kennt wer ein Modul das auch mit Varianten funktioniert. Das wäre der Hammer. Thx Link to comment Share on other sites More sharing options...
SliderFlash Posted June 3, 2020 Share Posted June 3, 2020 https://mypresta.eu/modules/administration-tools/free-mass-products-prices-update.html Link to comment Share on other sites More sharing options...
JBW Posted June 3, 2020 Share Posted June 3, 2020 Das sollte eigentlich per SQL gehen. Natürlich immer zuerst im Test-Shop an einem Artikel und mit vorherigen Backup ausprobieren. Danach gründlich testen Für das Produkt mit der ID 1: UPDATE `ps_product` SET `price` = `price`*1.2 WHERE `ps_product`.`id_product` = 1; UPDATE `ps_product_shop` SET `price` = `price`*1.2 WHERE `ps_product_shop`.`id_product` = 1; Für die Aufpreise von Varianten von Produkt mit ID 1: UPDATE `ps_product_attribute` SET `price` = price*1.2 WHERE `ps_product_attribute`.`id_product` = 1; UPDATE `ps_product_attribute_shop` SET `price` = price*1.2 WHERE `ps_product_attribute_shop`.`id_product` = 1 Wenn du Grundpreise und Einkaufspreise nutzt musst du die evtl auch anpassen Link to comment Share on other sites More sharing options...
SliderFlash Posted June 3, 2020 Share Posted June 3, 2020 vor 31 Minuten schrieb JBW: Das sollte eigentlich per SQL gehen. Natürlich immer zuerst im Test-Shop an einem Artikel und mit vorherigen Backup ausprobieren. Danach gründlich testen Für das Produkt mit der ID 1: UPDATE `ps_product` SET `price` = `price`*1.2 WHERE `ps_product`.`id_product` = 1; UPDATE `ps_product_shop` SET `price` = `price`*1.2 WHERE `ps_product_shop`.`id_product` = 1; Für die Aufpreise von Varianten von Produkt mit ID 1: UPDATE `ps_product_attribute` SET `price` = price*1.2 WHERE `ps_product_attribute`.`id_product` = 1; UPDATE `ps_product_attribute_shop` SET `price` = price*1.2 WHERE `ps_product_attribute_shop`.`id_product` = 1 Wenn du Grundpreise und Einkaufspreise nutzt musst du die evtl auch anpassen 20.000 Artikel Link to comment Share on other sites More sharing options...
JBW Posted June 3, 2020 Share Posted June 3, 2020 3 minutes ago, SliderFlash said: 20.000 Artikel Und? Lässt man die WHERE Bedingung weg gilt es für alle Artikel - sollte in wenigen Sekunden durch sein. Link to comment Share on other sites More sharing options...
NETZchecker Posted June 3, 2020 Author Share Posted June 3, 2020 14 hours ago, JBW said: Das sollte eigentlich per SQL gehen. Natürlich immer zuerst im Test-Shop an einem Artikel und mit vorherigen Backup ausprobieren. Danach gründlich testen Für das Produkt mit der ID 1: UPDATE `ps_product` SET `price` = `price`*1.2 WHERE `ps_product`.`id_product` = 1; UPDATE `ps_product_shop` SET `price` = `price`*1.2 WHERE `ps_product_shop`.`id_product` = 1; Für die Aufpreise von Varianten von Produkt mit ID 1: UPDATE `ps_product_attribute` SET `price` = price*1.2 WHERE `ps_product_attribute`.`id_product` = 1; UPDATE `ps_product_attribute_shop` SET `price` = price*1.2 WHERE `ps_product_attribute_shop`.`id_product` = 1 Wenn du Grundpreise und Einkaufspreise nutzt musst du die evtl auch anpassen Ich danke dir von ganzem Herzen! Hat super funkioniert. Puh, jetzt kann ich aufhören zu schwitzen. fg Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now