bxn5 / magegain-novaposhta Goto Github PK
View Code? Open in Web Editor NEWMagento 2 novaposhta shipping
Magento 2 novaposhta shipping
Усім привіт! )
Чому такий малий вибір?..
З повагою,
Іван
Найдена ошибка, что не подтягивается в поле номер почтового отделения при поиске на карте.
Можете написать модуль для почтовых отделений для мадженто 2.1?
Вписываю город, нажимаю из списка нужный, при переходе на следующее поле не обновляется цена доставки.
Magento 2.1.8, инсталяция чистая.
При первой синхронизации складов ошибка
Parse error: syntax error, unexpected '?' in /app/code/Magegain/Novaposhta/Controller/Adminhtml/Warhouse/Sync.php on line 124
Hello.
Could you please specify the license of this source code?
MIT would be great ;)
Thanks!
Hello.
Could you please specify the license of this source code?
MIT would be great ;)
Thanks!
Якщо користувач вже зареєстрований і має збережені адреси, то в момент оформлення замовлення при виборі однієї із збережених адрес, в переліку доступних методів доставки НП не відображаються. При цьому для новоствореної адреси все працює.
M2.2.2
В родном чекауте выглядит вот так: https://www.screencast.com/t/ehKHqxFf6 - нет выбора отделений. При переключении на адресную доставку - выглядит так же.
В onestepcheckout (Aheadworks OneStepCheckout) поле "Отделение новой почты" не отображается. После выбора любого из способов доставки (отделение или адрес) вылазят ошибки:
Ошибка 500 для /rest/default/V1/carts/mine/shipping-information https://www.screencast.com/t/FYreWaTOm5a
В var\report\api\
"Fatal Error: 'Uncaught Error: Call to a member function getCarrierDepartment() on null in D:\\Winginx\\home\\mysite.local\\public_html\\app\\code\\Magegain\\Novaposhta\\Model\\Quote\\AddressPlugin.php:19\nStack trace:\n#0 D:\\Winginx\\home\\mysite.local\\public_html\\vendor\\magento\\framework\\Interception\\Interceptor.php(121): Magegain\\Novaposhta\\Model\\Quote\\AddressPlugin->beforeSaveAddressInformation(Object(Magento\\Checkout\\Model\\ShippingInformationManagement\\Interceptor), 17, Object(Magento\\Checkout\\Model\\ShippingInformation))\n#1 D:\\Winginx\\home\\mysite.local\\public_html\\vendor\\magento\\framework\\Interception\\Interceptor.php(153): Magento\\Checkout\\Model\\ShippingInformationManagement\\Interceptor->Magento\\Framework\\Interception\\{closure}(17, Object(Magento\\Checkout\\Model\\ShippingInformation))\n#2 D:\\Winginx\\home\\mysite.local\\public_html\\generated\\code\\Magento\\Checkout\\Model\\ShippingInformationManagement\\Interceptor.php(26): Magento\\Checkout\\Model\\ShippingInformationManagement\\Interceptor->___callPlugins('saveAddressInfo...', Array, Array)\n#3 [i' in 'D:\\Winginx\\home\\mysite.local\\public_html\\app\\code\\Magegain\\Novaposhta\\Model\\Quote\\AddressPlugin.php' on line 19"
Preconditions
Magento 2.2.2
php-fm + nginx
Debian 9
mysql 7
Steps to reproduce
Установлена чистая мадженто без демо данных (шаблон лума по умолчанию, custom theme)
скопировал модуль НП в app/code
запустил команды (все для полного контроля)
rm -rf var/cache/* var/composer_home/cache/* var/di/* var/generation/* var/log/* var/page_cache/* var/tmp/* var/view_preprocessed/* var/report/* session/* pub/static/* generated/code/* generated/metadata/* pub/static/*
chmod u+x bin/magento
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento indexer:reindex
php bin/magento cache:clean
chown $name_suite:$name_suite -R $path_suite
chmod 777 -R ./*
установлен модуль новой почты
В админке прописал ключ НП
города и отделения синхронизировались ОК
создан новый товар
Expected result
get shipping calculated
Actual result
only fixed shipping method appeared, while shipping method block reloaded
https://prnt.sc/hvlu6x
did its work with magneto version 2.2
Обновил версию с 2.0.2 до 2.1.3 и не выводит на front-end. Что может быть? Сможете посмотреть?
Ключ для fex 847072331598
Модуль не работает в версии 2.2.1 - при попытке войтив города/склады для синхронизации - вылетает с ошибками
magegain-novaposhta/Magegain/Novaposhta/Controller/Ajax/Cities.php
return $this->resultJsonFactory->create()->setData(json_encode($to_json));
Навіщо json завертати в json?
resultJsonFactory і без json_encode відправляє json.
Magento ver. 2.3.0
При выборе метода доставки НП:
Служба доставки с таким методом не найдена: newposhta, newposhta.
Если выбрать метод доставки отличный от НП, то выдает ошибку:
Пожалуйста, проверьте адрес доставки. "city" is required. Enter and try again
Скажите пожалуйста можно ли для этого модуля реализовать или подсказать,как реализовать функцию "наложенного платежа" для Новой Почты в M2.Cпасибо за внимание.
Являюсь новичком, что только не пробовал - не появляется во фронте. В чем проблема?
Автор, как можно с тобой связаться? - Несколько вопросов по модулю есть.
P.S. Если не в напряг.
При попытке в админке зайти обновить выпадает ошибка
1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid XML in file /var/www/html/app/code/Magegain/Novaposhta/view/adminhtml/ui_component/city_listing.xml: Element 'argument': This element is not expected. Line: 54
то же самое и со складами
1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid XML in file /var/www/html/app/code/Magegain/Novaposhta/view/adminhtml/ui_component/warhouse_listing.xml: Element 'argument': This element is not expected. Line: 54
Коментирование строк с 54 по 59 в city_listing.xml и warhouse_listing.xml, вот этого кода
<argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="template" xsi:type="string">ui/grid/toolbar</item> <item name="stickyTmpl" xsi:type="string">ui/grid/sticky/toolbar</item> </item> </argument>
ну и синхронизация открывается и работает...
Сорри конечно, но такие шибки как warhouse (я так понимаю военный дом) вместо warehouse.
Тексты требуемые для перевода сразу на русском в файле Magegain/Novaposhta/Model/Carrier/Newposhta.php (тут тоже кажется что должно быть не Newposhta, а Novaposhta):
152 строка $carrierData = ['carrierTitle' => __('Новая почта'), 'methodCode' => 'newposhtahome', 'methodTitle' => __('Доставка на дом')];
и т.д.
Я думаю, что желательно привести это к нормальному виду.
Добрый день!
Magento 2.2.1
php-fm + nginx и nginx + apache
Ubuntu 16.10
mysql 5,7
Модуль работает прекрасно, но не закидывает данные о городе и отделении НП в заказ админки. Это недоработка или так и было запланировано?
Пройшовши процедуру оформлення замовлення обираю метод доставки "Доставка до отделения(номер укажите в коментарии к заказу)". Явно поле коментаря замовлення в стандартній Luma відсутнє, тому звичайний користувач взагалі його не вкаже. Окрім того не ясно навіщо взагалі в такій ситуації синхронізація складів.
Preconditions
Magento 2.2.2
php-fm + nginx
Debian 9
mysql 7
Steps to reproduce
Установлена чистая мадженто без демо данных (шаблон лума по умолчанию, custom theme)
скопировал модуль НП в app/code
запустил команды (все для полного контроля)
rm -rf var/cache/* var/composer_home/cache/* var/di/* var/generation/* var/log/* var/page_cache/* var/tmp/* var/view_preprocessed/* var/report/* session/* pub/static/* generated/code/* generated/metadata/* pub/static/*
chmod u+x bin/magento
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento indexer:reindex
php bin/magento cache:clean
chown $name_suite:$name_suite -R $path_suite
chmod 777 -R ./*
установлен модуль новой почты
В админке прописал ключ НП
города и отделения синхронизировались ОК
создан новый товар
Expected result
get shipping calculated
Actual result
only fixed shipping method appeared, while shipping method block reloaded
https://prnt.sc/hvlu6x
Нет связи между таблицами novaposhta_city и novaposhta_warhouse, так как в столбце city_id везде нули.
В чем может быть проблема?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.