Skip to content

Add tracking URL support for Lengow shipment actions#86

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/add-tracking-url-support
Draft

Add tracking URL support for Lengow shipment actions#86
Copilot wants to merge 3 commits intomainfrom
copilot/add-tracking-url-support

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 27, 2026

Provides a simple way for developers to send a tracking URL to the Lengow marketplace API when shipping orders.

Changes

  • API constantARG_TRACKING_URL = 'tracking_url' added to Action::ARG_* constants
  • MarketplacegetAllParams() handles the ARG_TRACKING_URL case with a commented placeholder showing where developers can adapt the value to their preferred source (e.g. a custom order attribute)

No database schema, UI, or plugin changes are included. The ARG_TRACKING_URL case in getAllParams() ships with an empty string by default and a code comment guiding developers on how to replace it:

case LengowAction::ARG_TRACKING_URL:
    // Set the tracking URL value to send to the marketplace.
    // Adapt this line to retrieve the URL from your preferred source,
    // e.g. a custom order attribute: $order->getData('tracking_url') ?: ''
    $params[$arg] = '';
    break;

💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

Agent-Logs-Url: https://github.com/lengow/plugin-magento2/sessions/0e533717-edaf-4ce1-b8b7-67eed1d963a7

Co-authored-by: michaelmaslengow <147600733+michaelmaslengow@users.noreply.github.com>
Copilot AI changed the title [WIP] Add tracking URL support in Magento module Add tracking URL support for Lengow shipment actions Mar 27, 2026
Copilot AI requested a review from michaelmaslengow March 27, 2026 15:14
@michaelmaslengow
Copy link
Copy Markdown
Contributor

@copilot
Je pensais plus a une version tres simple ou on set juste la nouvelle valeur a envoyé dans les actions de commandes et l'utilisateur peut remplacer un commentaire pour set la valeur qu'il veut dans le code.

…tAllParams()

Agent-Logs-Url: https://github.com/lengow/plugin-magento2/sessions/dd412ee7-0f21-4cfd-bc0a-68f7160ffd81

Co-authored-by: michaelmaslengow <147600733+michaelmaslengow@users.noreply.github.com>
Copy link
Copy Markdown
Author

Copilot AI commented Mar 27, 2026

@copilot
Je pensais plus a une version tres simple ou on set juste la nouvelle valeur a envoyé dans les actions de commandes et l'utilisateur peut remplacer un commentaire pour se...

Simplifié en d15dc96. Le changement se réduit désormais à deux fichiers :

  • Model/Import/Action.php — ajout de la constante ARG_TRACKING_URL = 'tracking_url'
  • Model/Import/Marketplace.php — ajout du case ARG_TRACKING_URL dans getAllParams() avec un commentaire indiquant à l'utilisateur où remplacer la valeur :
case LengowAction::ARG_TRACKING_URL:
    // Set the tracking URL value to send to the marketplace.
    // Adapt this line to retrieve the URL from your preferred source,
    // e.g. a custom order attribute: $order->getData('tracking_url') ?: ''
    $params[$arg] = '';
    break;

Tous les changements de schéma DB, UI, bloc et plugin ont été supprimés.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants