Skip to content

Commit 75ac7da

Browse files
authored
feat: drop legacy digital products email logics (#12)
This PR removes the legacy digital content flow from the GraphQL API - the removed functionality was deprecated in previous Saleor versions. **Important clarifications:** digital products are **still fully supported** in Saleor. Only the legacy, undocumented digital content API has been removed, the supported approach is documented here: https://docs.saleor.io/recipes/digital-products
1 parent f3a9281 commit 75ac7da

File tree

4 files changed

+150
-239
lines changed

4 files changed

+150
-239
lines changed

templated_email/compiled/confirm_fulfillment.html

Lines changed: 75 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
44
<head>
55
<title>
6-
6+
77
</title>
88
<!--[if !mso]><!-->
99
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -30,66 +30,66 @@
3030
.mj-outlook-group-fix { width:100% !important; }
3131
</style>
3232
<![endif]-->
33-
33+
3434
<!--[if !mso]><!-->
3535
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" rel="stylesheet" type="text/css">
3636
<style type="text/css">
3737
@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700);
3838
</style>
3939
<!--<![endif]-->
4040

41-
42-
41+
42+
4343
<style type="text/css">
4444
@media only screen and (min-width:480px) {
4545
.mj-column-per-100 { width:100% !important; max-width: 100%; }
4646
}
4747
</style>
48-
49-
48+
49+
5050
<style type="text/css">
51-
52-
51+
52+
5353
</style>
5454
<style type="text/css">address {
5555
font-style: inherit;
5656
font-family: Ubuntu, Helvetica, Arial;
5757
}</style>
58-
58+
5959
</head>
6060
<body style="word-spacing:normal;">
61-
62-
61+
62+
6363
<div style>
64-
65-
64+
65+
6666
<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
67-
68-
67+
68+
6969
<div style="margin:0px auto;max-width:600px;">
70-
70+
7171
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
7272
<tbody>
7373
<tr>
7474
<td style="direction: ltr; font-size: 0px; padding: 20px 0; text-align: center;" align="center">
7575
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
76-
76+
7777
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
78-
78+
7979
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
8080
<tbody>
81-
81+
8282
<tr>
8383
<td align="left" style="font-size: 0px; padding: 10px 25px; word-break: break-word;">
84-
84+
8585
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:16px;line-height:1;text-align:left;color:#000000;">Hi!</div>
86-
86+
8787
</td>
8888
</tr>
89-
89+
9090
<tr>
9191
<td align="left" style="font-size: 0px; padding: 10px 25px; word-break: break-word;">
92-
92+
9393
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:1;text-align:left;color:#000000;">{{#if order.order_details_url}}
9494
Thank you for your order. Below is the list of fulfilled products. To see your order details please visit:
9595
<a href="{{ order.order_details_url }}">{{ order.order_details_url }}</a>
@@ -105,53 +105,43 @@
105105
You can track your shipment with {{fulfillment.tracking_number}} code.
106106
{{/if}}
107107
{{/if}}</div>
108-
109-
</td>
110-
</tr>
111-
112-
<tr>
113-
<td align="left" style="font-size: 0px; padding: 10px 25px; word-break: break-word;">
114-
115-
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:1;text-align:left;color:#000000;">{{#if digital_lines}}
116-
You can download your digital products by clicking in download link(s).
117-
{{/if}}</div>
118-
108+
119109
</td>
120110
</tr>
121-
111+
122112
</tbody>
123113
</table>
124-
114+
125115
</div>
126-
116+
127117
<!--[if mso | IE]></td></tr></table><![endif]-->
128118
</td>
129119
</tr>
130120
</tbody>
131121
</table>
132-
122+
133123
</div>
134-
135-
124+
125+
136126
<!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
137-
138-
127+
128+
139129
<div style="margin:0px auto;max-width:600px;">
140-
130+
141131
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
142132
<tbody>
143133
<tr>
144134
<td style="direction: ltr; font-size: 0px; padding: 20px 0; text-align: center;" align="center">
145135
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
146-
136+
147137
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
148-
138+
149139
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
150140
<tbody>
151-
141+
152142
<tr>
153143
<td align="left" style="font-size: 0px; padding: 10px 25px; word-break: break-word;">
154-
144+
155145
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:1;text-align:left;color:#000000;">{{#if physical_lines}}
156146
<table style="width:100%">
157147
<thead class="table-header-row" style="border-bottom: 2px solid #000;">
@@ -173,130 +163,105 @@
173163
{{/each}}
174164
</tbody>
175165
</table>
176-
{{/if}}
177-
{{#if digital_lines}}
178-
<table style="width:100%">
179-
<thead class="table-header-row" style="border-bottom: 2px solid #000;">
180-
<tr>
181-
<th style="padding: 5px; text-align: left;" align="left">Item</th>
182-
<th style="padding: 5px; text-align: right;" align="right">Download Link</th>
183-
</tr>
184-
</thead>
185-
<tbody>
186-
{{#each digital_lines}}
187-
<tr class="table-item-row" style="border-bottom: 1px solid #D3D1D0;">
188-
{{#if order_line.variant_name}}
189-
<td style="padding: 5px;">{{order_line.product_name}} ({{order_line.variant_name}})</td>
190-
{{else}}
191-
<td style="padding: 5px;">{{order_line.product_name}}</td>
192-
{{/if}}
193-
<td style="padding: 5px; text-align: right;" align="right">
194-
<a href="{{order_line.digital_url}}">Link</a>
195-
</td>
196-
</tr>
197-
{{/each}}
198-
</tbody>
199-
</table>
200166
{{/if}}</div>
201-
167+
202168
</td>
203169
</tr>
204-
170+
205171
</tbody>
206172
</table>
207-
173+
208174
</div>
209-
175+
210176
<!--[if mso | IE]></td></tr></table><![endif]-->
211177
</td>
212178
</tr>
213179
</tbody>
214180
</table>
215-
181+
216182
</div>
217-
218-
183+
184+
219185
<!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
220-
221-
186+
187+
222188
<div style="margin:0px auto;max-width:600px;">
223-
189+
224190
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
225191
<tbody>
226192
<tr>
227193
<td style="direction: ltr; font-size: 0px; padding: 20px 0; text-align: center;" align="center">
228194
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
229-
195+
230196
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
231-
197+
232198
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
233199
<tbody>
234-
200+
235201
<tr>
236202
<td align="left" style="font-size: 0px; padding: 10px 25px; word-break: break-word;">
237-
203+
238204
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:1;text-align:left;color:#000000;">This is an automatically generated e-mail, please do not reply.</div>
239-
205+
240206
</td>
241207
</tr>
242-
208+
243209
</tbody>
244210
</table>
245-
211+
246212
</div>
247-
213+
248214
<!--[if mso | IE]></td></tr></table><![endif]-->
249215
</td>
250216
</tr>
251217
</tbody>
252218
</table>
253-
219+
254220
</div>
255-
256-
221+
222+
257223
<!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
258-
259-
224+
225+
260226
<div style="background:#F2F2F2;background-color:#F2F2F2;margin:0px auto;max-width:600px;">
261-
227+
262228
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#F2F2F2;background-color:#F2F2F2;width:100%;">
263229
<tbody>
264230
<tr>
265231
<td style="direction: ltr; font-size: 0px; padding: 20px 0; text-align: center;" align="center">
266232
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
267-
233+
268234
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
269-
235+
270236
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
271237
<tbody>
272-
238+
273239
<tr>
274240
<td align="center" style="font-size: 0px; padding: 10px 25px; word-break: break-word;">
275-
241+
276242
<div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:1;text-align:center;color:#000000;">Sincerely, {{ site_name }}</div>
277-
243+
278244
</td>
279245
</tr>
280-
246+
281247
</tbody>
282248
</table>
283-
249+
284250
</div>
285-
251+
286252
<!--[if mso | IE]></td></tr></table><![endif]-->
287253
</td>
288254
</tr>
289255
</tbody>
290256
</table>
291-
257+
292258
</div>
293-
294-
259+
260+
295261
<!--[if mso | IE]></td></tr></table><![endif]-->
296-
297-
262+
263+
298264
</div>
299-
265+
300266
</body>
301267
</html>
302-

0 commit comments

Comments
 (0)