Skip to content

Commit 06a6750

Browse files
committed
MAGETWO-52897: [Github] Downloadable product - download link in order confirmation email #3929
1 parent 3267737 commit 06a6750

File tree

1 file changed

+10
-0
lines changed
  • app/code/Magento/Downloadable/etc

1 file changed

+10
-0
lines changed

app/code/Magento/Downloadable/etc/di.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
<type name="Magento\Catalog\Model\Product\CartConfiguration">
1515
<plugin name="Downloadable" type="Magento\Downloadable\Model\Product\CartConfiguration\Plugin\Downloadable" />
1616
</type>
17+
<virtualType name="context_for_downloadable" type="Magento\Framework\View\Element\Template\Context">
18+
<arguments>
19+
<argument name="urlBuilder" xsi:type="object">Magento\Framework\Url</argument>
20+
</arguments>
21+
</virtualType>
22+
<type name="Magento\Downloadable\Block\Sales\Order\Email\Items\Order\Downloadable">
23+
<arguments>
24+
<argument name="context" xsi:type="object">context_for_downloadable</argument>
25+
</arguments>
26+
</type>
1727
<type name="Magento\Catalog\Model\Product\TypeTransitionManager">
1828
<plugin name="downloadable_product_transition" type="Magento\Downloadable\Model\Product\TypeTransitionManager\Plugin\Downloadable" />
1929
<arguments>

0 commit comments

Comments
 (0)