spree_emails 4.3.0.rc3 → 4.4.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4314ca9ba7212a0fb55f9c49f684b5e2231033ab12e7b2b0ddc627093037ca7
|
4
|
+
data.tar.gz: 3308834d6c842718e1c711db585b5eb83b9037e95a02528428ae5e46021a0d7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74285eda73f3d64a8ebe52ad8ca5fa44e33e2d5e2c410bdac233ad0f41e1108093455f87825ded2498d7f46cd0b16746af08471d177352f4b7ee40a2332809c2
|
7
|
+
data.tar.gz: 1deb811636ab7baaa1ebc8a3c9383eeb462a7d39fc572c8cd74eab75618d11cb4fba84082018393ed73331b7a3c49423bef7bc238e77411f7cf6ceb4acdfb461
|
@@ -4,7 +4,7 @@ module Spree
|
|
4
4
|
|
5
5
|
def variant_image_url(variant)
|
6
6
|
image = default_image_for_product_or_variant(variant)
|
7
|
-
image ? main_app.url_for(image.url(:small)) : 'noimage/small.png'
|
7
|
+
image ? main_app.url_for(image.url(:small)) : image_url('noimage/small.png')
|
8
8
|
end
|
9
9
|
|
10
10
|
def name_for(order)
|
@@ -21,7 +21,7 @@ module Spree
|
|
21
21
|
Please upload a Store logo instead
|
22
22
|
DEPRECATION
|
23
23
|
|
24
|
-
|
24
|
+
image_url('logo/spree_50.png')
|
25
25
|
end
|
26
26
|
|
27
27
|
def logo_path
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<% line_items.each do |item| %>
|
2
|
+
<%= item.variant.sku %> <%= raw(item.variant.product.name) %> <%= raw(item.variant.options_text) -%> (<%=item.quantity%>) <%= Spree.t('at_symbol') %> <%= item.single_money %> = <%= item.display_amount %>
|
3
|
+
<% end %>
|
4
|
+
============================================================
|
5
|
+
<%= Spree.t('order_mailer.subtotal') %> <%= order.display_item_total %>
|
6
|
+
<% if order.line_item_adjustments.exists? %>
|
7
|
+
<% if order.all_adjustments.promotion.eligible.exists? %>
|
8
|
+
<% order.all_adjustments.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
|
9
|
+
<%= Spree.t(:promotion) %>: <%= label %> <%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency) %>
|
10
|
+
<% end %>
|
11
|
+
<% end %>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<% order.shipments.group_by { |s| s.selected_shipping_rate.try(:name) }.each do |name, shipments| %>
|
15
|
+
<%= Spree.t(:shipping) %>: <%= name %> <%= Spree::Money.new(shipments.sum(&:discounted_cost), currency: order.currency) %>
|
16
|
+
<% end %>
|
17
|
+
|
18
|
+
<% if order.additional_tax_total != 0 %>
|
19
|
+
<%= Spree.t(:tax) %>: <%= order.display_additional_tax_total.to_html %>
|
20
|
+
<% end %>
|
21
|
+
|
22
|
+
<% order.adjustments.eligible.each do |adjustment| %>
|
23
|
+
<% next if (adjustment.source_type == 'Spree::TaxRate') and (adjustment.amount == 0) %>
|
24
|
+
<%= adjustment.label %> <%= adjustment.display_amount %>
|
25
|
+
<% end %>
|
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: 4.
|
4
|
+
version: 4.4.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-01-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 4.
|
20
|
+
version: 4.4.0.rc2
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 4.
|
27
|
+
version: 4.4.0.rc2
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: actionmailer
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- app/views/spree/shared/_base_mailer_stylesheets.html.erb
|
109
109
|
- app/views/spree/shared/_mailer_line_item.html.erb
|
110
110
|
- app/views/spree/shared/_purchased_items_table.html.erb
|
111
|
+
- app/views/spree/shared/_purchased_items_table.text.erb
|
111
112
|
- app/views/spree/shared/purchased_items_table/_adjustment.html.erb
|
112
113
|
- app/views/spree/shared/purchased_items_table/_line_item.html.erb
|
113
114
|
- app/views/spree/shared/purchased_items_table/_subtotal.html.erb
|
@@ -133,9 +134,9 @@ licenses:
|
|
133
134
|
- BSD-3-Clause
|
134
135
|
metadata:
|
135
136
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
136
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v4.
|
137
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v4.4.0.rc2
|
137
138
|
documentation_uri: https://dev-docs.spreecommerce.org/
|
138
|
-
source_code_uri: https://github.com/spree/spree/tree/v4.
|
139
|
+
source_code_uri: https://github.com/spree/spree/tree/v4.4.0.rc2
|
139
140
|
post_install_message:
|
140
141
|
rdoc_options: []
|
141
142
|
require_paths:
|
@@ -151,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
152
|
- !ruby/object:Gem::Version
|
152
153
|
version: 1.8.23
|
153
154
|
requirements: []
|
154
|
-
rubygems_version: 3.2.
|
155
|
+
rubygems_version: 3.2.32
|
155
156
|
signing_key:
|
156
157
|
specification_version: 4
|
157
158
|
summary: Transactional emails for Spree eCommerce platform
|