spree_emails 6.0.6 → 6.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/serializers/spree/emails/fulfillment_group_serializer.rb +4 -0
- data/app/serializers/spree/emails/fulfillment_serializer.rb +1 -0
- data/app/serializers/spree/emails/stock_location_serializer.rb +3 -0
- data/app/views/spree/order_mailer/confirm_email.liquid +1 -0
- data/app/views/spree/shared/_fulfillment_group.liquid +6 -1
- data/app/views/spree/shared/_pickup_location.liquid +23 -0
- data/app/views/spree/shared/_pickup_locations.liquid +18 -0
- data/config/initializers/typelizer.rb +1 -1
- data/config/locales/en.yml +1 -0
- metadata +8 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c6fb33b8a81ce2f01393f571edeec23857ef57505943db4a73fae33e00eb307f
|
|
4
|
+
data.tar.gz: 47000790ec11bc0a2a0977e9e30586f1132df9433f7c7c469a975ed9beb67e5d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f7f5e088f4be0fca51bb9055a12ef9f6fb1c29125f4fdf279fc69d9da9d09b4de3ceb501fa270e3d2aaa2a0408f0cc9483123366595d829e6f8d7c6f761d8cf
|
|
7
|
+
data.tar.gz: d2065a1e6029fd3da5ac54ce73ca11b9fa51212f73638de8b06ffc51392db5a8fde6e2ff27df3f5598c5fcfe08624c453d9f2d1a1a8ecb46bf1d72c567222434
|
|
@@ -4,6 +4,7 @@ module Spree
|
|
|
4
4
|
# cost to deliver.
|
|
5
5
|
class FulfillmentGroupSerializer
|
|
6
6
|
include Alba::Resource
|
|
7
|
+
include Typelizer::DSL
|
|
7
8
|
|
|
8
9
|
attributes :name
|
|
9
10
|
|
|
@@ -18,6 +19,9 @@ module Spree
|
|
|
18
19
|
group.sellers.map(&:name)
|
|
19
20
|
end
|
|
20
21
|
|
|
22
|
+
typelize pickup_location: { nullable: true }
|
|
23
|
+
one :pickup_location, resource: Spree::Emails::StockLocationSerializer
|
|
24
|
+
|
|
21
25
|
many :manifest, key: :items, source: proc { manifest.select(&:line_item) },
|
|
22
26
|
resource: Spree::Emails::ParcelItemSerializer
|
|
23
27
|
end
|
|
@@ -14,6 +14,7 @@ module Spree
|
|
|
14
14
|
many :deliveries, resource: Spree::Emails::DeliverySerializer
|
|
15
15
|
one :delivery_method, resource: Spree::Emails::DeliveryMethodSerializer
|
|
16
16
|
one :stock_location, resource: Spree::Emails::StockLocationSerializer
|
|
17
|
+
one :pickup_location, resource: Spree::Emails::StockLocationSerializer
|
|
17
18
|
many :delivery_rates, resource: Spree::Emails::DeliveryRateSerializer
|
|
18
19
|
|
|
19
20
|
many :manifest, key: :manifest_items, source: proc { manifest.select(&:line_item) },
|
|
@@ -9,4 +9,5 @@ subject: "{% if resend %}[{{ 'resend' | t }}] {% endif %}{{ store.name }} {{ 'or
|
|
|
9
9
|
<mj-text mj-class="lead">{{ 'order_mailer.confirm_email.instructions' | t }}</mj-text>
|
|
10
10
|
</mj-column>
|
|
11
11
|
</mj-section>
|
|
12
|
+
{% render 'spree/shared/pickup_locations', fulfillments: order.fulfillments %}
|
|
12
13
|
{% render 'spree/shared/order_summary', heading: heading, purchase: order, items: order.items, totals: true %}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{%- comment -%}
|
|
2
2
|
One real parcel of a purchase: the goods it carries and what it cost to
|
|
3
|
-
deliver
|
|
3
|
+
deliver, and where to collect it when it is a pickup. A purchase
|
|
4
|
+
arriving in one parcel is not numbered.
|
|
4
5
|
Arguments: group, position, count.
|
|
5
6
|
{%- endcomment -%}
|
|
6
7
|
<mj-section padding="48px 0 0">
|
|
@@ -21,5 +22,9 @@
|
|
|
21
22
|
{%- endif -%}
|
|
22
23
|
{% render 'spree/shared/summary_row', label: 'shipping', translate: true, sub: group.name, value: cost %}
|
|
23
24
|
</mj-table>
|
|
25
|
+
{%- if group.pickup_location -%}
|
|
26
|
+
<mj-text mj-class="section-heading" padding="24px 0 16px">{{ 'order_mailer.pickup_location' | t }}</mj-text>
|
|
27
|
+
{% render 'spree/shared/pickup_location', location: group.pickup_location %}
|
|
28
|
+
{%- endif -%}
|
|
24
29
|
</mj-column>
|
|
25
30
|
</mj-section>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{%- comment -%}
|
|
2
|
+
One location a buyer collects from: its name, address and the merchant's
|
|
3
|
+
collection instructions, as column content. Arguments: location.
|
|
4
|
+
{%- endcomment -%}
|
|
5
|
+
{%- assign locality = location.city | default: '' -%}
|
|
6
|
+
{%- if location.state_text != blank -%}
|
|
7
|
+
{%- if locality != blank -%}{%- assign locality = locality | append: ', ' -%}{%- endif -%}
|
|
8
|
+
{%- assign locality = locality | append: location.state_text -%}
|
|
9
|
+
{%- endif -%}
|
|
10
|
+
{%- if location.zipcode != blank -%}
|
|
11
|
+
{%- if locality != blank -%}{%- assign locality = locality | append: ' ' -%}{%- endif -%}
|
|
12
|
+
{%- assign locality = locality | append: location.zipcode -%}
|
|
13
|
+
{%- endif -%}
|
|
14
|
+
<mj-text mj-class="body" padding="0">
|
|
15
|
+
<strong>{{ location.name }}</strong>
|
|
16
|
+
{%- if location.address1 != blank -%}<br />{{ location.address1 }}{%- endif -%}
|
|
17
|
+
{%- if location.address2 != blank -%}<br />{{ location.address2 }}{%- endif -%}
|
|
18
|
+
{%- if locality != blank -%}<br />{{ locality }}{%- endif -%}
|
|
19
|
+
{%- if location.country_name != blank -%}<br />{{ location.country_name }}{%- endif -%}
|
|
20
|
+
</mj-text>
|
|
21
|
+
{%- if location.pickup_instructions != blank -%}
|
|
22
|
+
<mj-text mj-class="note" align="left" padding="16px 0 0">{{ location.pickup_instructions }}</mj-text>
|
|
23
|
+
{%- endif -%}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{%- comment -%}
|
|
2
|
+
Where the buyer collects a pickup order: each location once.
|
|
3
|
+
Arguments: fulfillments.
|
|
4
|
+
{%- endcomment -%}
|
|
5
|
+
{%- assign shown = '' -%}
|
|
6
|
+
{%- for fulfillment in fulfillments -%}
|
|
7
|
+
{%- if fulfillment.status == 'canceled' -%}{%- continue -%}{%- endif -%}
|
|
8
|
+
{%- if fulfillment.pickup_location == nil -%}{%- continue -%}{%- endif -%}
|
|
9
|
+
{%- assign key = fulfillment.pickup_location.id | prepend: '|' | append: '|' -%}
|
|
10
|
+
{%- if shown contains key -%}{%- continue -%}{%- endif -%}
|
|
11
|
+
{%- assign shown = shown | append: key -%}
|
|
12
|
+
<mj-section padding="48px 0 0">
|
|
13
|
+
<mj-column>
|
|
14
|
+
<mj-text mj-class="section-heading" padding="0 0 16px">{{ 'order_mailer.pickup_location' | t }}</mj-text>
|
|
15
|
+
{% render 'spree/shared/pickup_location', location: fulfillment.pickup_location %}
|
|
16
|
+
</mj-column>
|
|
17
|
+
</mj-section>
|
|
18
|
+
{%- endfor -%}
|
|
@@ -33,7 +33,7 @@ Rails.application.config.after_initialize do
|
|
|
33
33
|
)
|
|
34
34
|
|
|
35
35
|
# Staff emails are not editable, so their data has no type.
|
|
36
|
-
staff = %w[User Invitation Import Export WebhookEndpoint].to_set
|
|
36
|
+
staff = %w[User Invitation Import Export WebhookEndpoint ApiKey].to_set
|
|
37
37
|
|
|
38
38
|
Typelizer.configure do |config|
|
|
39
39
|
config.dirs += [emails_root.join('app/serializers/spree/emails'), Spree::Core::Engine.root.join('app/serializers/spree/emails')]
|
data/config/locales/en.yml
CHANGED
|
@@ -93,6 +93,7 @@ en:
|
|
|
93
93
|
message_copy_link: 'If the button doesn''t work please copy and paste the following link to your browser:'
|
|
94
94
|
pay_for_order: Pay for order
|
|
95
95
|
subject: 'Payment link for order #%{number}'
|
|
96
|
+
pickup_location: Pickup location
|
|
96
97
|
po_number: 'PO Number: %{number}'
|
|
97
98
|
store_owner_notification_email:
|
|
98
99
|
heading: New Order Received
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_emails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.0.
|
|
4
|
+
version: 6.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean Schofield
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2026-11-
|
|
13
|
+
date: 2026-11-27 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: spree
|
|
@@ -18,14 +18,14 @@ dependencies:
|
|
|
18
18
|
requirements:
|
|
19
19
|
- - '='
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 6.0.
|
|
21
|
+
version: 6.0.7
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
25
|
requirements:
|
|
26
26
|
- - '='
|
|
27
27
|
- !ruby/object:Gem::Version
|
|
28
|
-
version: 6.0.
|
|
28
|
+
version: 6.0.7
|
|
29
29
|
- !ruby/object:Gem::Dependency
|
|
30
30
|
name: email_spec
|
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -131,6 +131,8 @@ files:
|
|
|
131
131
|
- app/views/spree/shared/_fulfillment_group.liquid
|
|
132
132
|
- app/views/spree/shared/_line_item.liquid
|
|
133
133
|
- app/views/spree/shared/_order_summary.liquid
|
|
134
|
+
- app/views/spree/shared/_pickup_location.liquid
|
|
135
|
+
- app/views/spree/shared/_pickup_locations.liquid
|
|
134
136
|
- app/views/spree/shared/_purchase_totals.liquid
|
|
135
137
|
- config/initializers/typelizer.rb
|
|
136
138
|
- config/locales/ar.yml
|
|
@@ -194,9 +196,9 @@ licenses:
|
|
|
194
196
|
- BSD-3-Clause
|
|
195
197
|
metadata:
|
|
196
198
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
|
197
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v6.0.
|
|
199
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v6.0.7
|
|
198
200
|
documentation_uri: https://spreecommerce.org/docs/
|
|
199
|
-
source_code_uri: https://github.com/spree/spree/tree/v6.0.
|
|
201
|
+
source_code_uri: https://github.com/spree/spree/tree/v6.0.7
|
|
200
202
|
post_install_message:
|
|
201
203
|
rdoc_options: []
|
|
202
204
|
require_paths:
|