Skip to content

getShippingMethod as object still suffer from "carrier underscore" bug  #31311

Open
@Sartoric

Description

@Sartoric

Preconditions (*)

  1. Magento 2.4-develop
  2. Magento 2.3.5-p1

Steps to reproduce (*)

  1. Use a custom carrier with underscore in his name eg. aa_bb
  2. retrieve the shipping method as an object eg.
    $shipping = $order->getShippingMethod(true)
  3. get the carrier_code
    $code = $shipping->getCarrierCode()

Expected result (*)

  1. $code should be aa_bb

Actual result (*)

  1. $code is aa while $shipping->getMethod() is bb_method

Screenshot from 2021-01-04 14-32-08

Related to this: #13902


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Labels

Component: ShippingIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: ready for confirmationPriority: P3May be fixed according to the position in the backlog.Progress: PR in progressReported on 2.3.5-p1Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions