0

如何使用actionValidateCustomerAddressForm,运行时地址更新详情

4

1 回答 1

0

actionValidateCustomerAddressForm您将获得整个地址形式作为参数。

public function hookActionValidateCustomerAddressForm($params){
   $addressForm = $params['form'];
   // do the stuff
}

当然,您只能在模块中使用该钩子。要生成基本的自定义模块,请查看https://validator.prestashop.com/

于 2021-11-29T12:08:56.637 回答