Skip to content

Setting up Order History tracking numbers that don't apply to (and repeat on) every product. #33

@chris-decker-volusion

Description

@chris-decker-volusion

The latest core by default will display every tracking number beside every product in the order history. This is a horribly confusing design if you have more than one tracking number as it will list a tracking number beside a product that it isn't applicable to. I have updated our "Boilerplate" starter theme to remove the tracking number from the item listing (order-history-item-listing.hypr.live) and apply it to the order listing sidebar instead (order-listing.hypr.live).

The new code makes the following checks:

  • Does a package exist for the order?
  • If so, provide each tracking number.
  • If a package associated with a tracking number contains less items than the order total, provide a list of every item included in the package.
    new_tracking_number_layout

My code files can be found here:
https://github.com/mozu-customer-success/storefront-boilerplate/blob/decker-dev/templates/modules/my-account/order-history-item-listing.hypr.live

https://github.com/mozu-customer-success/storefront-boilerplate/blob/decker-dev/templates/modules/common/order-listing.hypr.live

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions