DPDBeNeLux / magento2-shipping

Let op: er zijn nieuwe DPD plugins (BETA versie) beschikbaar met belangrijke nieuwe functionaliteiten. De oude plugins zullen na Brexit niet meer goed functioneren, download daarom de nieuwe versie op Github/DPDconnect.
GNU General Public License v3.0
12 stars 15 forks source link

Incorrectly imported csv with rates #52

Open lisovyievhenii opened 4 years ago

lisovyievhenii commented 4 years ago

See https://github.com/DPDBeNeLux/magento2-shipping/blob/master/Model/ResourceModel/Tablerate.php#L315

Change it to:

$this->importConditionName = $this->getConditionName($object, $this->shippingMethod);

Explanation: when importer runs, the $object->getGroupId() returns the name of the first shipping method that you have (dpd_classic). It walks through the files for import, but $this->importConditionName stays same for all other shipping methods.