2017-07-14 51 views

回答

1

賣家可以在登記後緊跟的賣家歡迎向導輸入他的地址。但是,如果你還需要這在登錄表單,你需要重寫你的主題這裏面登記模板/plugins/dokan/templates/global/seller-registration-form.php

添加地址字段作爲此模板設置: /plugins/dokan/templates/settings/address-form.php

然後使用woocommerce_created_customer掛鉤,以節省您的$ POST數據相應。

爲了節約地址,你可以檢查此文件作爲參考: /plugins/dokan/classes/template-settings.php line: 462

感謝

0

<p class="form-row form-group form-row-wide"> 
 
     <label for="dokan_address[city]"><?php _e('City', 'dokan-lite'); ?> <span class="required">*</span></label> 
 
     <input type="text" class="input-text form-control" name="city" id="dokan_address[city]" value="<?php if (! empty($postdata['city'])) echo esc_attr($postdata['dokan_address']); ?>" required="required" /> 
 
    </p>

+0

描述您的解決方案,以及提供代碼 – sorak