Jump to content

Передача города в Shiptor, для вывода доставок

Если у вас стоит модуль доставки Shiptor, добавьте этот код в метод callback модуля dadata opencart

callback: [function(self, data) {
      let kladr_id_v = data(['kladr_id']);
      if(kladr_id_v) {
        $.post("index.php?route=extension/shipping/shiptor/save", {
        	kladr_id: kladr_id_v
    }, reloadAll],

Данный код тестировался на версии Opencart 2.3


Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.