Plugin MyParcel - Erreur - Commande hors EU - Customs declaration

  • Posts: 121
  • Thank you received: 10
  • Hikashop Business
3 years 5 months ago #333145

-- HikaShop version -- : 4.4.2
-- Joomla version -- : 3.9.27
-- PHP version -- : 7.4.19
-- Error-message(debug-mod must be tuned on) -- : Erreur
Error in MyParcel API request: data.shipments[0].customs_declaration.items[0].description - data.shipments[0].customs_declaration.items[0].description should be 30 characters or less - Shipment validation error Url: api.myparcel.nl/shipments Request: {"data":{"shipments":[{"recipient":{"cc":"RE","person":"re re","postal_code":"97441","city":"SAINTE SUZANNE","email":"info@lerenardquitrace.be","phone":"45245242","street":"MONCHAVET LOT BAGATELLE 1 7","street_additional_info":""},"options":{"package_type":1,"label_description":"Order C-2021-00376","only_recipient":0,"signature":0,"return":0,"delivery_type":2},"carrier":2,"reference_identifier":"Order C-2021-00376","general_settings":{"save_recipient_address":1,"disable_auto_detect_pickup":0},"physical_properties":{"weight":50},"customs_declaration":{"contents":1,"weight":50,"items":[{"description":"Applicateurs rouge \u00e0 l\u00e8vres jetables","amount":1,"weight":35,"classification":"1","country":"BE","item_value":{"amount":495,"currency":"EUR"}},{"description":"MEHRON - Vaporisateur 100 ml","amount":2,"weight":44,"classification":"1","country":"BE","item_value":{"amount":590,"currency":"EUR"}},{"description":"DIVA STENCILS - Pochoir - 336 - Paint Splatters","amount":1,"weight":5,"classification":"1","country":"BE","item_value":{"amount":550,"currency":"EUR"}},{"description":"DIVA STENCILS - Pochoir - 567 - Unicorn Baby","amount":1,"weight":5,"classification":"1","country":"BE","item_value":{"amount":595,"currency":"EUR"}},{"description":"DIVA STENCILS - Pochoir - 648 - Forehead Henna...","amount":1,"weight":5,"classification":"1","country":"BE","item_value":{"amount":695,"currency":"EUR"}}],"invoice":""}}]}}

Bonjour,

Nous avons récemment installé le plugin MyParcel et avons tenté un test pour un colis hors EU (La Réunion).

Nous recevons le message d'erreur en annexe. Il apparait que nos noms de produits sont trop longs mais nous n'avons pas prévu de les changer ;)

Que proposez-vous comme solution?

Merci d'avance et belle journée.

Stéphanie

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 5 months ago #333155

Bonjour,

Cela sera corrigeable facilement.
Dans le fichier plugins/hikashop/myparcel/myparcel.php, vous pouvez changer la ligne:
->setDescription(strip_tags($product->order_product_name))
en:
->setDescription(substr(strip_tags($product->order_product_name), 0, 30))
Ainsi, le nom sera coupé au delà de 30 caractères lors de l'envoi à MyParcel.
Nous allons rajouter la modification au plugin disponible de notre coté également.

Please Log in or Create an account to join the conversation.

  • Posts: 121
  • Thank you received: 10
  • Hikashop Business
3 years 5 months ago #333168

C'est modifié merci beaucopu

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum