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

Tablerates CSV not uploaded/picked up #51

Open Asitis opened 4 years ago

Asitis commented 4 years ago

This issue is similar to this one, but it doesn't conflict with the default Table Rates, but it doesn't allow to configure the DPD table rates.

Steps to reproduce:

Expected result: The DPD Pickup option cost would be 10,- Actual result: The DPD Pickup option is shown, along with the default Magento table rates, but it is free.

When I go back to check the CSV in the backend, it doesn't update. I export the empty CSV, add my rules to it, save it, upload it. When I download it again I just get a empty CSV again. There are no errors (file permissions or the like) from Magento or the server.

This is the CSV content I try to use; Country,Region/State,"Zip/Postal Code","Order Subtotal (and above)","Shipping Price" *,*,*,0,10 *,*,*,50,0

Asitis commented 4 years ago

Found the issue, fixed it ourselves; Has to do with the dpd_shipping_tablerate table properties. condition_name is set to varchar(20) but it is supposed to be package_value_with_discount (which has 27 characters), so we set the table to varchar(30) and now it does save.