在發生產品更新時執行
參數
變量 | 類型 | 注意 |
---|---|---|
N/A | array | 請求變量 |
響應
Return 接受 string
或 array
。對single
錯誤消息使用字符串或對多個錯誤消息使用字符串的array
。
示例代碼
<?php
add_hook('ShoppingCartValidateProductUpdate', 1, function($vars) {
return [
'Error message feedback error 1',
'Error message feedback error 2',
];
});
相關用法
- PHP WHMCS ShoppingCartValidateDomain用法及代碼示例
- PHP WHMCS ShoppingCartValidateCheckout用法及代碼示例
- PHP WHMCS ShoppingCartValidateDomainsConfig用法及代碼示例
- PHP WHMCS ShoppingCartViewCartOutput用法及代碼示例
- PHP WHMCS ShoppingCartCheckoutCompletePage用法及代碼示例
- PHP WHMCS ShoppingCartConfigureProductAddonsOutput用法及代碼示例
- PHP WHMCS ShoppingCartCheckoutOutput用法及代碼示例
- 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大神的英文原創作品 ShoppingCartValidateProductUpdate。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。