Rafsun Chowdhury
Forum Replies Created
-
Hello,
You need to override the template from your theme first, create a folder named dokan inside your theme and place the template like this and remove the address field :/themes/your-theme/dokan/global/update-account.php
After that in your theme functions.php file add these lines :
remove_action( 'template_redirect', 'dokan_become_seller_handler' ); add_action( 'template_redirect', 'custom_98738234_dokan_become_seller_handler' ); function custom_98738234_dokan_become_seller_handler () { if ( isset( $_POST['dokan_migration'] ) && wp_verify_nonce( $_POST['dokan_nonce'], 'account_migration' ) ) { $user = get_userdata( get_current_user_id() ); $errors = array(); $_POST['address'] = ''; $checks = array( 'fname' => __( 'Enter your first name', 'dokan' ), 'lname' => __( 'Enter your last name', 'dokan' ), 'shopname' => __( 'Enter your shop name', 'dokan' ), 'phone' => __( 'Enter your phone number', 'dokan' ), ); foreach ($checks as $field => $error) { if ( empty( $_POST[$field]) ) { $errors[] = $error; } } if ( ! $errors ) { dokan_user_update_to_seller( $user, $_POST ); wp_redirect( dokan_get_page_url( 'myaccount', 'dokan' ) ); } } }
Hello,
In Dokan the mass pay occurs only if you use PayPal adaptive system or Stripe Payment gateway, but If you use manual payment for vendors in that case Dokan has in built Withdrawal Threshold period which can be set as you need.
So, in your case you may use manual payment with a threshold period of 2 days after an order is completed. So, it will work from the Order date but not from the event date so you may need to manage the event date in your own way.
Forum: Plugins
In reply to: [WooCommerce] Conditional Drop-DownAt first you need to know about wordpress ajax hooks and jQuery ajax and onChange event.
check WP AJAX with jQuery post
when you hit the ajax function extract your $_POST values and populate another <select> and return it to your script for appending it into the DOM
Try out YITH Request A Quote, the free version allows to change the add-to-cart text to anything as you need.
Yes, it is possible .
You need to overwrite this template
/woocommerce/templates/emails/customer-new-account.php
and add reset link with these lines:
<?php $user_data = get_user_by( 'login', $user_login ); $key = get_password_reset_key( $user_data ); ?> <p> <a class="link" href="<?php echo esc_url( add_query_arg( array( 'key' => $key, 'login' => rawurlencode( $user_login ) ), wc_get_endpoint_url( 'lost-password', '', wc_get_page_permalink( 'myaccount' ) ) ) ); ?>"> <?php _e( 'Click here to reset your password', 'woocommerce' ); ?></a> </p>
- This reply was modified 8 years, 2 months ago by Rafsun Chowdhury.
- This reply was modified 8 years, 2 months ago by Rafsun Chowdhury.
Forum: Plugins
In reply to: [WooCommerce] 2 Dashboards in WooCommerceBy default woocommerce is not a marketplace plugin, it’s a Single seller based E-commerce Add-on. May be your client is using some other plugin for creating the listing site or marketplace. “Vendors” are not a feature of woocommerce so please see what other plugins your client is using as the issue you posted is irrelevant to woocommerce Core.
You can try creating custom templates for your invoices, see the template folder for samples and over ride them with your own.
Hi,
If you want to add phone number you can simply concat it into the $shop_address variable.There is no need for additional hooks and functions.
@sammzand your function is wrong it won’t work like that.
Just replace the line 334 and 346 with the following line in dokan-invoice.php file
return $shop_address.'<br>'.$store_info['phone'];
Forum: Plugins
In reply to: [WooCommerce] Calculate price by weightYou won’t find exact plugin better to create a few function yourself.
1. create two option field to set Labor price and weight in grams globally. you might find some plugin to create wp_options.
2.
use this filter :
apply_filters( 'woocommerce_get_price', $this->price, $this );
to change the price of the product .
Forum: Themes and Templates
In reply to: Centering Header Image.header-image { text-align: center; margin: 0 auto; }
add this to bottom of your themes style.css
Forum: Plugins
In reply to: [WooCommerce] How to include purchase note inside 'My Account' page?You need to override the default my-orders.php template.
You can find it in woocommerce/templates/myaccount/my-orders.php
In this file edit/replace :
<td class="order-total" data-title="<?php esc_attr_e( 'Total', 'woocommerce' ); ?>"> <?php echo sprintf( _n( '%s for %s item', '%s for %s items', $item_count, 'woocommerce' ), $order->get_formatted_order_total(), $item_count ); ?> </td>
with
<td class="order-total" data-title="<?php esc_attr_e( 'Order Note', 'woocommerce' ); ?>"> <?php echo $order->get_customer_order_notes() ?> </td>