Php 商店用品:购买物品后显示物品的下载链接
在此模板中Php 商店用品:购买物品后显示物品的下载链接,php,shopware,Php,Shopware,在此模板中 /themes/Frontend/Bare/frontend/detail/tabs/description.tpl 显示一个下载链接。 现在我们只想在购买产品后显示此链接,即: /themes/Frontend/Bare/frontend/account/order_item_details.tpl 在description.tpl中,变量$sArticle.sDownloads可用,但在order\u item\u details.tpl中只有一个$offerPosition
/themes/Frontend/Bare/frontend/detail/tabs/description.tpl
显示一个下载链接。
现在我们只想在购买产品后显示此链接,即:
/themes/Frontend/Bare/frontend/account/order_item_details.tpl
在description.tpl
中,变量$sArticle.sDownloads
可用,但在order\u item\u details.tpl
中只有一个$offerPosition
没有字段sDownloads
如何访问订单项目详细信息.tpl中的下载内容?我认为您可以收听名为
Shopware\u Modules\u Admin\u GetOpenOrderData\u FilterResult
的事件,以检索$getOrders
,该事件包含模板订单项目详细信息.tpl的$offerPosition
数据
告诉您如何使用侦听器。我认为您可以收听名为Shopware\u Modules\u Admin\u GetOpenOrderData\u FilterResult
的事件,以检索$getOrders
,该事件保存模板订单项目详细信息的$offerPosition
数据
将告诉您如何使用侦听器