Home Forums Plugins WooCommerce Orders Tracking Change the carrier slug for custom Carrier

Change the carrier slug for custom Carrier

  • Author
    Posts
  • #95276

    Quan Hua
    Participant

    Hi,
    I am using CJPacket as the default shipping carrier. I am also using the TrackingMore API to handle the tracking.
    However, I have a problem when using the Tracking Page to get the tracking details as below:
    – The expected API for TrackingMore for CJPacket is “https://api.trackingmore.com/v2/trackings/cj-dropshipping/{tracking_number}” -> the “cj-dropshipping” is the carrier slug in TrackingMore system.
    – However, in our plugin, you are defined the URL as “self::get_url( “trackings/{$carrier_slug}/{$tracking_number}” );”
    – CJPacket is not a default carrier so I have to add it as a custom carrier. And the custom carrier slug is “custom_1622869717” and I want it to be “cj-dropshipping” so I can use TrackingMore.
    Please tell me how I can either:
    – Change the carrier slug
    – Manually create CJPacket by hardcoding any file
    Thank you very much.

    Attachments:
    You must be logged in to view attached files.

You must be logged in to see replies to this topic. Click here to login or register