允許返回輸出以在客戶區產品詳細信息頁麵中顯示。
參數
變量 | 類型 | 注意 |
---|---|---|
service | \WHMCS\Service\Service | 表示正在呈現的服務的服務對象。 |
響應
返回要在頁麵上輸出的 HTML。
示例代碼
<?php
add_hook('ClientAreaProductDetailsOutput', 1, function($service) {
if (!is_null($service)) {
$orderID = $service['service']->orderId;
return 'OrderID: ' . $orderID;
}
return '';
});
相關用法
- PHP WHMCS ClientAreaProductDetailsPreModuleTemplate用法及代碼示例
- PHP WHMCS ClientAreaProductDetails用法及代碼示例
- PHP WHMCS ClientAreaPrimarySidebar用法及代碼示例
- PHP WHMCS ClientAreaPrimaryNavbar用法及代碼示例
- PHP WHMCS ClientAreaPageDownloads用法及代碼示例
- PHP WHMCS ClientAreaPageSupportTickets用法及代碼示例
- PHP WHMCS ClientAreaPageDomainDNSManagement用法及代碼示例
- PHP WHMCS ClientAreaPageAffiliates用法及代碼示例
- PHP WHMCS ClientAreaPageViewInvoice用法及代碼示例
- PHP WHMCS ClientAreaPageProductsServices用法及代碼示例
- PHP WHMCS ClientAreaPageDomainRegisterNameservers用法及代碼示例
- PHP WHMCS ClientAreaPageUnsubscribe用法及代碼示例
- PHP WHMCS ClientAreaPageConfigureSSL用法及代碼示例
- PHP WHMCS ClientAreaPageDomainDetails用法及代碼示例
- PHP WHMCS ClientAreaPageAddonModule用法及代碼示例
- PHP WHMCS ClientAreaPageContact用法及代碼示例
- PHP WHMCS ClientAreaPageSecurity用法及代碼示例
- PHP WHMCS ClientAreaPage用法及代碼示例
- PHP WHMCS ClientAreaPageDomainEmailForwarding用法及代碼示例
- PHP WHMCS ClientAreaPageDomainAddons用法及代碼示例
- PHP WHMCS ClientAreaPageAddFunds用法及代碼示例
- PHP WHMCS ClientAreaPageBulkDomainManagement用法及代碼示例
- PHP WHMCS ClientAreaPaymentMethods用法及代碼示例
- PHP WHMCS ClientAreaPageViewWHOIS用法及代碼示例
- PHP WHMCS ClientAreaPageViewQuote用法及代碼示例
注:本文由純淨天空篩選整理自whmcs.com大神的英文原創作品 ClientAreaProductDetailsOutput。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。