Module renames first shipment of all orders as Primary Shipment

Created on 14 February 2022, almost 3 years ago
Updated 4 March 2024, 9 months ago

Problem/Motivation

The module overwrites the title generated by commerce_shipping for the first shipment of every order, regardless of shipment method.

Steps to reproduce

Place an order and edit the shipment. The Title will be Primary Shipment.

Proposed resolution

Only apply this to fedex shipments if that was the intention.

  /**
   * {@inheritdoc}
   */
  public function pack(OrderInterface $order, ProfileInterface $shipping_profile) {

    $shipments = [
      [
        'title' => $this->t('Primary Shipment'),
        'items' => [],
      ],
    ];

Remaining tasks

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024