|
Sk
| Hello Gregório,
It seems some conflicts with your custom code. please check if the custom code have any error. if you want us to check that error for you, you can send a customization request.
We offer customization services. Our rate is $30 per hour. You can mail us at info@wedevs.com with your job details for a quote.
Thank you
|
|
Sk
| Hello Gregório ,
I didn’t face any problem there. It’s working fine.
Let me know if you face any further problem.
Thank you
|
|
Sk
| Hello,
Please provide your login details by using this form: http://wedevs.com/provide-login-details/. I will have a look what is going wrong.
Thank you 🙂
|
January 14, 2015 at 2:03 pm in reply to:
translating and date issues 34117 |
Sk
| Hello Gregório Sordi
You can put the file in mytheme-child/dokan folder and it will work ( for those file where the template loads ). But this process violate the rule of WordPress coding rule. Though it will not make any problem when update your stuff still we don’t recommend it.
Thank you.
|
December 26, 2014 at 2:54 am in reply to:
Price 0 32958 |
Sk
| Hello Corrado,
Please try the following code:
[php]
add_filter( ‘woocommerce_free_price_html’, ‘dokan_free_price’, 10, 2 );
function dokan_free_price ( $price, $this ) {
$price = __( ‘Price in request’, ‘woocommerce’ );
return $price;
}
[/php]
Thank you… 🙂
|
December 15, 2014 at 3:26 pm in reply to:
Error with picture upload 32328 |
Sk
| Hello Stuart,
Your plugin “CSSjockey Membership Modules” is conflicting with WPUF. Please don’t use this plugin with WPUF. I have activated this plugin. Now your site works fine.
Thank you… 🙂
|
December 14, 2014 at 5:34 pm in reply to:
Error with picture upload 32298 |
Sk
| Thank you we got the details. I will check your problem on tomorrow (on working hour).
Hope I can give you a good solution.
🙂
|
December 14, 2014 at 2:42 pm in reply to:
Error with picture upload 32289 |
Sk
| Hello Stuart,
Please provide your login details by using this form -http://wedevs.com/provide-login-details/. I will have a look what is going wrong.
Thank you 🙂
|
|
Sk
| This reply has been marked as private. |
|
Sk
| Hello Gregório Sordi
Here is your total code.
function endereco( $current_user, $profile_info ) {
$pv_local_pickup_enabled = isset( $profile_info['pv_local_pickup_enabled'] ) ? esc_attr($profile_info['pv_local_pickup_enabled']) : 'no';
$billing_city = isset( $profile_info['billing_city'] ) ? $profile_info['billing_city'] : '';
$billing_postcode = isset( $profile_info['billing_postcode'] ) ? $profile_info['billing_postcode'] : '';
$billing_state = isset( $profile_info['billing_state'] ) ? $profile_info['billing_state'] : '';
$billing_address_1 = isset( $profile_info['billing_address_1'] ) ? $profile_info['billing_address_1'] : '';
?>
<div class="gregcustom dokan-form-group">
<label class="dokan-w3 dokan-control-label" for="setting_address"><?php _e( 'Local Pickup', 'dokan' ); ?></label>
<div class="dokan-w5">
<div class="checkbox">
<label>
<input name="pv_local_pickup_enabled" type="checkbox"
id="pv_local_pickup_enabled" class="<?php echo 'id_' . $store_id; ?>" value="yes" <?php checked( $pv_local_pickup_enabled, 'yes' ); ?>/>
<?php
_e('Enable Local Pickup for the shop products', 'dokan');
?></label>
</div>
</div>
</div>
<div class="gregcustom dokan-form-group">
<label class="dokan-w3 dokan-control-label" for="setting_address"><?php _e( 'Cidade', 'dokan' ); ?></label>
<div class="dokan-w5">
<input type="text" class="dokan-form-control input-md valid" name="billing_city" id="reg_billing_city" value="<?php echo $billing_city; ?>" />
</div>
</div>
<div class="gregcustom dokan-form-group">
<label class="dokan-w3 dokan-control-label" for="setting_address"><?php _e( 'Estado', 'dokan' ); ?></label>
<div class="dokan-w5">
<input type="text" class="dokan-form-control input-md valid" name="billing_postcode" id="reg_billing_postcode" value="<?php echo $billing_postcode; ?>" />
</div>
</div>
<div class="gregcustom dokan-form-group">
<label class="dokan-w3 dokan-control-label" for="setting_address"><?php _e( 'CEP', 'dokan' ); ?></label>
<div class="dokan-w5">
<input type="text" class="dokan-form-control input-md valid" name="billing_state" id="reg_billing_state" value="<?php echo $billing_postcode; ?>" />
</div>
</div>
<div class="gregcustom dokan-form-group">
<label class="dokan-w3 dokan-control-label" for="setting_address"><?php _e( 'Endereço', 'dokan' ); ?></label>
<div class="dokan-w5">
<input type="text" class="dokan-form-control input-md valid" name="billing_address_1" id="reg_billing_address_1" value="<?php echo $billing_address_1; ?>" />
</div>
</div>
<?php
}
add_filter( 'dokan_settings_after_banner', 'endereco', 10, 2);
/**
* Save the extra fields.
*
* @param int $customer_id Current customer ID.
*
* @return void
*/
function save_extra_endereco_fields( $store_id, $dokan_settings ) {
if (isset($_POST['pv_local_pickup_enabled'])) {
$dokan_settings['pv_local_pickup_enabled'] = $_POST['pv_local_pickup_enabled'];
}
if ( isset( $_POST['billing_city'] ) ) {
$dokan_settings['billing_city'] = $_POST['billing_city'];
}
if ( isset( $_POST['billing_postcode'] ) ) {
$dokan_settings['billing_postcode'] = $_POST['billing_postcode'];
}
if ( isset( $_POST['billing_state'] ) ) {
$dokan_settings['billing_state'] = $_POST['billing_state'];
}
if ( isset( $_POST['billing_address_1'] ) ) {
$dokan_settings['billing_address_1'] = $_POST['billing_address_1'];
}
update_user_meta( $store_id, 'dokan_profile_settings', $dokan_settings );
}
add_action( 'dokan_store_profile_saved', 'save_extra_endereco_fields', 10, 2 );
Note: Please don’t use more than one add_action in a hook for one event.
Thank you.. 🙂
|
|
Sk
| Hello,
Have a look on that link. I have answered that.
Thank you.
|
|
Sk
| The code for store-about looks ok.
Please provide your ftp details by using this form – http://wedevs.com/provide-login-details/ . I will have a look what is going wrong.
Thank you 🙂
|
November 10, 2014 at 12:30 pm in reply to:
WP Editor problem on dashboard/settings 30096 |
Sk
| Hi,
May be $_POST['dokan_store_image']; is getting an empty value.
Please provide your login details by using this form -http://wedevs.com/provide-login-details/. I will have a look what is going wrong.
Thank you 🙂
|
|
Sk
| Hello Roberto,
Is this all you have added? I think no. please provide all your added code. I don’t see any extra field in your code named dokan_store_image or dokan-store-about . May be you miss something. If not it should work properly.
thank you.
🙂
|
October 27, 2014 at 3:12 pm in reply to:
Dokan Plugin – Orders not showing 29147 |
Sk
| hi,
I am getting an error in your site.
[php]WordPress database error: [23000 : [Microsoft][SQL Server Native Client 11.0][SQL Server]Violation of UNIQUE KEY constraint ‘wp_options_option_name’. Cannot insert duplicate key in object ‘dbo.wp_options’. The duplicate key value is (rewrite_rules).][/php]
please check your site by deactivate all plugins include “dokan” and “woocommerce”. See if the problem still there.
we think this problem causes by either your theme or hosting server.
thank you.
|