Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Change naming from delivery to shipment in storefront
Anna Siwik6b236d1ce79f
diff --git a/templates/cart-dropdown.html b/templates/cart-dropdown.htmlindex 1e74f3b8fe..407858f737 100644--- a/templates/cart-dropdown.html+++ b/templates/cart-dropdown.html@@ -32,7 +32,7 @@<div class="col-md-8"><h3>{% trans "Subtotal" context "Order subtotal" %}<br>- <span>{% trans "(Delivery calculated at checkout)" context "Cart dropdown text" %}</span></h3>+ <span>{% trans "(Shipment calculated at checkout)" context "Cart dropdown text" %}</span></h3></div><div class="col-md-4"><h3 class="float-md-right price {% if lines|length <= 2 %}single{% endif %}" data-quantity="{{ quantity }}">diff --git a/templates/checkout/details.html b/templates/checkout/details.htmlindex db93928aae..35bd40240c 100644--- a/templates/checkout/details.html+++ b/templates/checkout/details.html@@ -32,8 +32,8 @@{% with total=checkout.get_total %}<div class="checkout__review"><h3 class="checkout__review__tittle">{% trans "Order review" context "Order review title" %}</h3>- {% for delivery, delivery_cost, total_with_delivery in checkout.deliveries %}- {% for item, item_price_per_item, item_price_total in delivery %}+ {% for shipment, shipment_cost, total_with_shipment in checkout.deliveries %}+ {% for item, item_price_per_item, item_price_total in shipment %}<div class="row"><div class="col-8"><p><strong>{{ item.variant.product }}</strong> x {{ item.quantity }}<br>@@ -47,7 +47,7 @@{% endfor %}<div class="row checkout__review__section"><div class="col-8">- <p>{% trans "Delivery" context "Order review section" %}</p>+ <p>{% trans "Shipment" context "Order review section" %}</p></div><div class="col-4"><p class="float-right">{% if checkout.shipping_method %}diff --git a/templates/dashboard/order/modal/cancel_delivery_group.html b/templates/dashboard/order/modal/cancel_delivery_group.htmlindex 6c1f1b0872..174a054b5c 100644--- a/templates/dashboard/order/modal/cancel_delivery_group.html+++ b/templates/dashboard/order/modal/cancel_delivery_group.html@@ -1,14 +1,14 @@{% load i18n %}{% load materializecss %}-<form id="ship-delivery-group-form" method="post" role="form" action="{% url 'dashboard:cancel-delivery-group' order_pk=order.pk group_pk=group.pk %}" class="form-async" novalidate>+<form method="post" role="form" action="{% url 'dashboard:cancel-delivery-group' order_pk=order.pk group_pk=group.pk %}" class="form-async" novalidate>{% csrf_token %}<div class="modal-content"><h5>- {% trans "Cancel delivery group?" context "Modal cancel delivery group title" %}+ {% trans "Cancel shipment group?" context "Modal cancel shipment group title" %}</h5><p>- {% blocktrans trimmed context "Modal cancel delivery group text" %}+ {% blocktrans trimmed context "Modal cancel shipment group text" %}After this action {{ group }} will be cancelled. Ordered items will be returned to stock.{% endblocktrans %}</p>@@ -18,7 +18,7 @@{% trans "Abort" context "Dashboard abort action" %}</a><button type="submit" class="modal-action btn-flat">- {% trans "Cancel this shipment" context "Modal cancel delivery group primary action" %}+ {% trans "Cancel this shipment" context "Modal cancel shipment group primary action" %}</button></div></form>diff --git a/templates/dashboard/order/modal/ship_delivery_group.html b/templates/dashboard/order/modal/ship_delivery_group.htmlindex b3cc94ec15..59d4680f0e 100644--- a/templates/dashboard/order/modal/ship_delivery_group.html+++ b/templates/dashboard/order/modal/ship_delivery_group.html@@ -1,14 +1,14 @@{% load i18n %}{% load materializecss %}-<form id="ship-delivery-group-form" method="post" role="form" action="{% url 'dashboard:ship-delivery-group' order_pk=order.pk group_pk=group.pk %}" class="form-async" novalidate>+<form method="post" role="form" action="{% url 'dashboard:ship-delivery-group' order_pk=order.pk group_pk=group.pk %}" class="form-async" novalidate>{% csrf_token %}<div class="modal-content"><h5>- {% trans "Dispatch delivery group" context "Modal ship delivery group title" %}+ {% trans "Dispatch shipment group" context "Modal ship shipment group title" %}</h5><p>- {% trans "Dispatch this shipment to the following address:" context "Modal ship delivery group text" %}+ {% trans "Dispatch this shipment to the following address:" context "Modal ship shipment group text" %}</p>{% include 'dashboard/includes/_address.html' with address=group.order.shipping_address only %}<div class="row">@@ -20,7 +20,7 @@{% trans "Cancel" context "Dashboard cancel action" %}</a><button type="submit" class="modal-action btn-flat">- {% trans "Ship" context "Modal ship delivery group primary action" %}+ {% trans "Ship" context "Modal ship shipment group primary action" %}</button></div></form>diff --git a/templates/order/_ordered_items_table.html b/templates/order/_ordered_items_table.htmlindex 27f8a00830..62bedbdf99 100644--- a/templates/order/_ordered_items_table.html+++ b/templates/order/_ordered_items_table.html@@ -76,13 +76,13 @@<div class="row"><div class="col-8 order-details__table-footer"><p>- {% blocktrans trimmed with shipping_method_name=item.shipping_method_name context "Order details delivery row text" %}- Delivery ({{ shipping_method_name }})+ {% blocktrans trimmed with shipping_method_name=item.shipping_method_name context "Order details shipment row text" %}+ Shipment ({{ shipping_method_name }}){% endblocktrans %}</p>{% if item.tracking_number %}<p>- {% blocktrans trimmed with tracking_number=item.tracking_number context "Order details delivery row text" %}+ {% blocktrans trimmed with tracking_number=item.tracking_number context "Order details shipment row text" %}Tracking number: {{ tracking_number }}{% endblocktrans %}</p>diff --git a/templates/order/details.html b/templates/order/details.htmlindex 8cf5c05a91..1f6edbd844 100644--- a/templates/order/details.html+++ b/templates/order/details.html@@ -29,7 +29,7 @@{% block content %}{# This view is available by just knowing url, #}- {# so we don't show all details (like delivery address) #}+ {# so we don't show all details (like shipping address) #}{# unless current user is owner of the order. #}<div class="row order-details">