myparcelnl / pdk Goto Github PK
View Code? Open in Web Editor NEWMyParcel Plugin Development Kit
MyParcel Plugin Development Kit
In the old plugin, it was possible to insure shipments to both EU and ROW regardless of the purchase amount. Customers would like to see this option available again in the new version of WooCommerce.
An individual insurance field for the field for EU Shipments and optionally for ROW.
No response
No response
When the APCu extension is present but not enabled, an error is thrown in the ContainerBuilder.
Fatal error: Uncaught Exception: APCu is not enabled, PHP-DI cannot use it as a cache in /xxx/vendor/php-di/php-di/src/ContainerBuilder.php:138
Stack trace:
#0 /xxx/pdk/src/Base/Factory/PdkFactory.php(88): MyParcelNL\DI\ContainerBuilder->build()
#1 /xxx/pdk/src/Base/Factory/PdkFactory.php(34): MyParcelNL\Pdk\Base\Factory\PdkFactory->setupContainer()
#2 /xxx/pdk/src/Base/PdkBootstrapper.php(57): MyParcelNL\Pdk\Base\Factory\PdkFactory::create()
#3 /xxx/pdk/src/Base/PdkBootstrapper.php(41): MyParcelNL\Pdk\Base\PdkBootstrapper->createPdkInstance()
// Rest of the stack trace omitted
thrown in /xxx/vendor/php-di/php-di/src/ContainerBuilder.php on line 138
When a customer chooses a pickup location, this is not visible in the backend as well as not exported to MyParcel.
Original message
Binnen de checkout kan een klant een afhaalpunt selecteren. Ondanks de selectie wordt het afhaalpunt niet meegenomen in de bestelling en niet zichtbaar in de backend. Ook na het exporteren wordt het afhaalpunt niet geëxporteerd.
No response
Originally reported by @christiantraets (myparcelnl/woocommerce#1050)
@EdieLemoine: When fetching carriers from the MyParcel API, when PostNL custom contract carrier is enabled, multiple postnl carriers are returned. This causes problems all over the place. We need to correct this manually before saving these carriers in the PDK.
8.1.5
8.1.28
I have tried to test the myparcelnl on stock PrestaShop 8.1.5 installation.
It seems that there is an issue when trying to save the API key for the first time (and after deleting the API key and setting it up again the issue occurs too).
Error log is below.
From what I can understand, the issue is that PostNL Carrier is duplicated (I don't know why) and the PostNL (Custom contract) use the same name
. CarrierCollection
which is used in the process of setting up new carriers contain seven MyParcelNL\Pdk\Carrier\Model\Carrier
objects and three of them have the same name:
[0] => MyParcelNL\Pdk\Carrier\Model\Carrier Object
(
[cloned:protected] =>
[attributes:protected] => Array
(
[externalIdentifier] =>
[id] => 1
[name] => postnl
[human] => PostNL
[contractId] =>
[enabled] => 1
[isDefault] => 1
[label] =>
[optional] => 0
[primary] => 1
[type] => main
[1] => MyParcelNL\Pdk\Carrier\Model\Carrier Object
(
[cloned:protected] =>
[attributes:protected] => Array
(
[externalIdentifier] =>
[id] => 1
[name] => postnl
[human] => PostNL
[contractId] =>
[enabled] => 1
[isDefault] => 1
[label] =>
[optional] => 0
[primary] => 1
[type] => main
[2] => MyParcelNL\Pdk\Carrier\Model\Carrier Object
(
[cloned:protected] =>
[attributes:protected] => Array
(
[externalIdentifier] =>
[id] => 1
[name] => postnl
[human] => PostNL
[contractId] => <redacted>
[enabled] => 1
[isDefault] => 1
[label] =>
[optional] => 0
[primary] => 1
[type] => custom
There is one more bug (duplicated PostNL) in the configuration page too (screenshot below) that is probably related to this issue.
accountUpdate ERROR handler ApiException: An exception occurred while executing 'INSERT INTO ps_myparcelnl_carrier_mapping (carrier_id, myparcel_carrier, date_upd, date_add) VALUES (?, ?, ?, ?)' with params [6, "postnl", "2024-04-24 13:33:08", "2024-04-24 13:33:08"]: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'postnl' for key 'myparcel_carrier'
rn https://domain.com/modules/myparcelnl/views/js/backend/admin/dist/index.iife.js:15
doRequest https://domain.com/modules/myparcelnl/views/js/backend/admin/dist/index.iife.js:21
index.iife.js:21:1018
log https://domain.com/modules/myparcelnl/views/js/backend/admin/dist/index.iife.js:21
error https://domain.com/modules/myparcelnl/views/js/backend/admin/dist/index.iife.js:21
Xy https://domain.com/modules/myparcelnl/views/js/backend/admin/dist/index.iife.js:21
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.