在結帳時顯示完整頁麵時執行。
參數
變量 | 類型 | 注意 |
---|---|---|
orderid | int | 訂單ID |
ordernumber | int | 訂單的訂單號 |
invoiceid | int | 訂單發票編號 |
ispaid | bool | 指示訂單是否已付款 |
amount | float | 訂貨量 |
paymentmethod | string | 訂單付款方式 |
clientdetails | array | 訂單所針對的客戶的完整詳細信息 |
響應
返回要在訂單完成頁麵上顯示的 HTML。
示例代碼
<?php
add_hook('ShoppingCartCheckoutCompletePage', 1, function($vars) {
/**
* Redirect all orders to a different page after the order complete page is loaded.
*/
return '<META http-equiv="refresh" content="5;URL=http://www.mydomain.com/ownpage.html" />';
});
相關用法
- PHP WHMCS ShoppingCartCheckoutOutput用法及代碼示例
- PHP WHMCS ShoppingCartConfigureProductAddonsOutput用法及代碼示例
- PHP WHMCS ShoppingCartValidateDomain用法及代碼示例
- PHP WHMCS ShoppingCartValidateCheckout用法及代碼示例
- PHP WHMCS ShoppingCartValidateProductUpdate用法及代碼示例
- PHP WHMCS ShoppingCartViewCartOutput用法及代碼示例
- PHP WHMCS ShoppingCartValidateDomainsConfig用法及代碼示例
- PHP String wordwrap()用法及代碼示例
- PHP SimpleXMLElement children()用法及代碼示例
- PHP SplPriorityQueue isCorrupted()用法及代碼示例
- PHP SplObjectStorage key()用法及代碼示例
- PHP SplHeap extract()用法及代碼示例
- PHP String sprintf()用法及代碼示例
- PHP SplPriorityQueue insert()用法及代碼示例
- PHP SplFixedArray key()用法及代碼示例
- PHP String ucwords()用法及代碼示例
- PHP SplFileInfo getRealPath()用法及代碼示例
- PHP SplObjectStorage rewind()用法及代碼示例
- PHP SplFileInfo getPerms()用法及代碼示例
- PHP SplHeap top()用法及代碼示例
- PHP SplFileInfo getExtension()用法及代碼示例
- PHP String substr()用法及代碼示例
- PHP WHMCS SendAdminEmail用法及代碼示例
- PHP WHMCS SubmitTicketAnswerSuggestions用法及代碼示例
- PHP SplObjectStorage count()用法及代碼示例
注:本文由純淨天空篩選整理自whmcs.com大神的英文原創作品 ShoppingCartCheckoutCompletePage。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。