Skip to content

Commit fbfc999

Browse files
committed
feat: drop legacy digital products email logics
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 fbfc999

File tree

4 files changed

+0
-87
lines changed

4 files changed

+0
-87
lines changed

templated_email/compiled/confirm_fulfillment.html

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,6 @@
109109
</td>
110110
</tr>
111111

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-
119-
</td>
120-
</tr>
121-
122112
</tbody>
123113
</table>
124114

@@ -173,30 +163,6 @@
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>
201167

202168
</td>

templated_email/compiled/update_fulfillment.html

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -158,30 +158,6 @@
158158
{{/each}}
159159
</tbody>
160160
</table>
161-
{{/if}}
162-
{{#if digital_lines}}
163-
<table style="width:100%">
164-
<thead class="table-header-row" style="border-bottom: 2px solid #000;">
165-
<tr>
166-
<th style="padding: 5px; text-align: left;" align="left">Item</th>
167-
<th style="padding: 5px; text-align: right;" align="right">Download Link</th>
168-
</tr>
169-
</thead>
170-
<tbody>
171-
{{#each digital_lines}}
172-
<tr class="table-item-row" style="border-bottom: 1px solid #D3D1D0;">
173-
{{#if order_line.variant_name}}
174-
<td style="padding: 5px;">{{order_line.product_name}} ({{order_line.variant_name}})</td>
175-
{{else}}
176-
<td style="padding: 5px;">{{order_line.product_name}}</td>
177-
{{/if}}
178-
<td style="padding: 5px; text-align: right;" align="right">
179-
<a href="{{order_line.digital_url}}">Link</a>
180-
</td>
181-
</tr>
182-
{{/each}}
183-
</tbody>
184-
</table>
185161
{{/if}}</div>
186162

187163
</td>

templated_email/source/confirm_fulfillment.mjml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
{{/if}}
2727
{{/if}}
2828
</mj-text>
29-
<mj-text>
30-
{{#if digital_lines}}
31-
You can download your digital products by clicking in download link(s).
32-
{{/if}}
33-
</mj-text>
3429
</mj-column>
3530
</mj-section>
3631
<mj-include path="./partials/_fulfillment_lines.mjml" />

templated_email/source/partials/_fulfillment_lines.mjml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,6 @@
2323
</tbody>
2424
</table>
2525
{{/if}}
26-
{{#if digital_lines}}
27-
<table style="width:100%">
28-
<thead class="table-header-row">
29-
<tr>
30-
<th style="text-align: left;">Item</th>
31-
<th style="text-align: right;">Download Link</th>
32-
</tr>
33-
</thead>
34-
<tbody>
35-
{{#each digital_lines}}
36-
<tr class="table-item-row">
37-
{{#if order_line.variant_name}}
38-
<td>{{order_line.product_name}} ({{order_line.variant_name}})</td>
39-
{{else}}
40-
<td>{{order_line.product_name}}</td>
41-
{{/if}}
42-
<td style="text-align: right;">
43-
<a href={{order_line.digital_url}}>Link</a>
44-
</td>
45-
</tr>
46-
{{/each}}
47-
</tbody>
48-
</table>
49-
{{/if}}
5026
</mj-text>
5127
</mj-column>
5228
</mj-section>

0 commit comments

Comments
 (0)