• Whenever I create a label, the Customs Description (50 chars max) text box does not match what is printed on the label. For example, in the Customs Description text box, if I enter “Hello World”, it will show on the label “Medium T-Shirt”. How can I override this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Shadi Manna

    (@shadim)

    That is the general customs description for the package as a whole. However the individual items printed on the label get the name from the product title.

    You can always use the “pr_shipping_dhl_label_args” plugin filter and modify this if you like.

    Thread Starter cybsys

    (@cybsys)

    How do I use pr_shipping_dhl_label_args so it doesn’t get the label name from the product title?

    Thread Starter cybsys

    (@cybsys)

    Okay, I fixed it myself. File to edit is includes\REST_API\DHL_eCS_Asia\Client.php

    In the function item_info_to_request_data, you need to edit the shipment_content array:

    'description'			=> $item_info->shipment['description'], //$content['description'],
    'descriptionExport'		=> $item_info->shipment['description'], //$content['descriptionExport'],
    Plugin Author Shadi Manna

    (@shadim)

    Making changes to the plugin code itself is problematic, since the next time you update the plugin these changes will be overriden. It is best to use the hook as mentioned in my previous message.

    Thread Starter cybsys

    (@cybsys)

    I don’t know how to use the hook, so I just edited the core files. When you release an update, I will re-patch the core files as needed because I kept a personal log of the files I edited (that is, I will only need to do that if the core isn’t fixed so hopefully you make the necessary changes to the GitHub repo to fix this bug).

    I’d highly recommend making this an option in the DHL plugin settings so users can select what they’d prefer to use as the description on the label.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Customs Description Not Matching Label’ is closed to new replies.