2015-11-04 39 views
1

在此模板後,shopware:顯示articl的downloadlink已經買

/themes/Frontend/Bare/frontend/detail/tabs/description.tpl 

一個downloadlink所示。 現在我們要顯示該鏈接的產品已經買了只後,即在這裏:

/themes/Frontend/Bare/frontend/account/order_item_details.tpl 

description.tpl變量$sArticle.sDownloads是可用的,但在order_item_details.tpl只有一個$offerPosition,不具有現場sDownloads

怎樣才能訪問order_item_details.tpl下載?

回答

0

我想你可以聽其持有的$offerPosition數據的模板order_item_details.tplShopware_Modules_Admin_GetOpenOrderData_FilterResult檢索$getOrders事件。

Shopware Documentation告訴你如何使用監聽器。