Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Link to Stock Location from Order Shipments page

Damian Legawiecfa658bbe3636
diff --git a/backend/app/views/spree/admin/orders/_shipment.html.erb b/backend/app/views/spree/admin/orders/_shipment.html.erb
index 64956c02c2..9799c6ed50 100644
--- a/backend/app/views/spree/admin/orders/_shipment.html.erb
+++ b/backend/app/views/spree/admin/orders/_shipment.html.erb
@@ -8,7 +8,9 @@
-
<span class="shipment-state"><%= Spree.t("shipment_states.#{shipment.state}") %></span>
<%= Spree.t(:package_from) %>
- <strong class="stock-location-name" data-hook="stock-location-name">'<%= shipment.stock_location.name %>'</strong>
+ <strong class="stock-location-name" data-hook="stock-location-name">
+ <%= link_to shipment.stock_location.name, spree.edit_admin_stock_location_url(shipment.stock_location) %>
+ </strong>
<% if shipment.ready? and can? :update, shipment %>
<%= link_to Spree.t(:ship), 'javascript:;', class: 'ship ml-auto btn btn-success', data: { 'shipment-number' => shipment.number } %>
<div class='clearfix'></div>