Add tracking URL support for Lengow shipment actions#86
Draft
Add tracking URL support for Lengow shipment actions#86
Conversation
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
Contributor
|
@copilot |
…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>
Author
Simplifié en d15dc96. Le changement se réduit désormais à deux fichiers :
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provides a simple way for developers to send a tracking URL to the Lengow marketplace API when shipping orders.
Changes
ARG_TRACKING_URL = 'tracking_url'added toAction::ARG_*constantsgetAllParams()handles theARG_TRACKING_URLcase 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_URLcase ingetAllParams()ships with an empty string by default and a code comment guiding developers on how to replace it:💬 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.