marx213
Forum Replies Created
-
Hello Shadi,
Happy New Year,
So, the update worked great on the plugin! But I’m a little confused about the linking of packages using the reference number, how would this be done? Does this mean we have to generate multiple labels for multiple packages separately? The problem I face with this – is that we have sometimes 3 packages which are too large, and this is a set of items, which of course belong to one order. And, we can only print one label, so, I am not sure how we would do this with the plugin?
Thanks for your help again,
Phil
Shadi,
That’d be great – I have access to the database which would be the best method and using SQL I could do this faster; but also knowing any other methods would be helpful too ??
Hi Shadi,
At the moment in time the solution I’m doing is manually making them in the DHL Portal; this is the only way at the moment. Luckily, on the page where we enter all details – the option for “Number of Shipments” is written before the “Submit” button; so it could be added to the label generation section of WooCommerce.
Example of Section on DHL –
Number of Shipments Number of shipments with details as given above [ 1 ]
This can be changed using a text field into any numerical value decided by ourselves.
As for the countryCode issue; while this is a nice – temporary solution – I do not feel it is something good for long term, the problem being that we have over 2,000 products; and manually going onto each and every single product would be rather difficult, especially considering WooCommerce from time to time is not the fastest CMS system.
Perhaps a bulk edit option would be better suited? but I do not know if you guys have to do this or from myself.
Hello Shadi,
I’ve gone through one product to test and it does indeed look like this is the main issue. However, it brings me to another point. I have some products which require 2 or more boxes to ship, is there any possibility to add to the plugin “Total package(s)” so if the shipment requires two boxes, then each has a label linked to the same order?
Thanks again for your hard work, really helping me out there.
Phil
Hello Shadi,
So I’ve attached the information below from the log, and I think I see the problem. The line which focuses on “[Origin]” is set to Array, of course with “DE” listed in the CountryISOCode, but I think this could be better if the country code was listed direct as opposed to using an array? Or perhaps I am wrong, I’m not 100% sure here.
[Shipper] => Array ( [Name] => Array ( [name1] => A####### S######## [name2] => B####### D####### ) [Address] => Array ( [streetName] => P########## [streetNumber] => 1### [zip] => 7#### [city] => K######## [state] => B########### [Origin] => Array ( [countryISOCode] => DE ) ) [Communication] => Array ( [email] => i#######@#######.de ) )
Hope I’ve attached the right information here,
Thanks again,
Phil.
- This reply was modified 6 years, 11 months ago by marx213. Reason: Updated for Code adding
I know I’m double posting here but I took the opportunity to look through some things, and found that the account for the API information I have used, is an Administrator. Is it possible that it could be something to do with DHL Geschaeftskundenportal connecting to the API properly or not?
Update
Can confirm that it is not account specific. Tried with a standard user, administrator and of course a secondary contract. Unfortunately the same error.- This reply was modified 6 years, 11 months ago by marx213.
Hi there Shadi,
Thanks for your message – I have two logs from the DHL plug, one is listed as “DHL” and the other “Fatal Errors” which includes this line –
2017-12-12T14:00:16+00:00 CRITICAL SOAP-ERROR: Encoding: object has no ‘streetNumber’ property
and
2017-12-14T11:36:35+00:00 CRITICAL SOAP-ERROR: Encoding: object has no ‘countryCodeOrigin’ property
The other log, the DHL primary log contains a lot more information. The log I will post below, but it is a lot longer – some information I have to censor for obvious reason.
[Receiver] => Array ( [name1] => P###### G###### [Address] => Array ( [name2] => Home [streetName] => ########### [zip] => ##### [city] => ########### [Origin] => Array ( [countryISOCode] => FR ) )
Name and private information has been censored using “#” but, it shows the log IS indeed sending the correct ISO code, but for some unknown reason the API gives back an error saying that object no country code origin.
I think I wrote wrong – when I go to my Order Page – and check an order for a country outside of Germany, it will display “France” instead of “FR” on the country list. Perhaps this is the issue, as I think the ISO2 is required by the API instead of the actual name of the country, for the obvious reason that in Germany, France is called “Frankreich” and not “France” so I think it might be required that our front end uses the country code instead of the actual name.
Perhaps I’m wrong, but if you could let me know that’d be great.
Thanks again,
Phil
Hello Frank,
This is no issue – I’ll just have to change my Shipping fields so that “Address Line 1 & 2” and required for name and number respectively.
As for the shipping to other countries, these countries are indeed selected in the drop down by Customers. They choose their country on the checkout page and this will then place their country of origin in the order backend. I am not sure what could cause this issue, it seems to me that while WooCommerce actually names the countries fully, the DHL API requires “FR” for France, and DE for Germany and so on.
Does it sound like this could perhaps be the issue? If so, how would one go about resolving this?
Thanks,
Phil.
Also when attempting to generate a label for a foreign country outside of our own, this error occurs –
SOAP-ERROR: Encoding: object has no ‘countryCodeOrigin’ property