• Resolved stanalex7

    (@stanalex7)


    Hi there! I will write you here my problem because I know here you are more responsive.
    So, more than a month ago, I asked on your customization page ( https://wclovers.com/woocommerce-multivendor-customization/ ) for a feature that I want , it was about modify the withdrawal reverse table and add a new column. After I contacted you, you told me that I don t have to pay for this feature, and you will give me a snippet but also you told me that ”right now it’s not possible to add new column under reverse withdrawal screen. So I am waiting for WCFM Marketplace new update, we will add this prohibition to do so”
    I waited this ever since, but I didn t get any reply back from you. So, 5 days ago , I emailed you again, but with no response from you yet.
    I also want to specify that I am a premium member.
    Can you please resolve this? I think I waited a resonable time for this to be resolved.
    The emails are from [email protected]

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Well, first of “Customization Support” is not premium support.

    Premium support is only for paid users.

    But any user may reach us for customization help.

    Currently, we are not providing any customization help/support as due to COVID-19 issue we are running with a very small team.

    Between, here is your code for the purpose-

    add_filter( 'wcfm_withdrawal_reverse_additonal_data', function( $content, $rwithdrawal_id, $order_id, $vendor_id ) {
    	if ( WC()->payment_gateways() ) {
    		$payment_gateways = WC()->payment_gateways->payment_gateways();
    	} else {
    		$payment_gateways = array();
    	}
    	$order = wc_get_order( $order_id );
    	$payment_method = ! empty( $order->get_payment_method() ) ? $order->get_payment_method() : '';
    	if( $payment_method && isset( $payment_gateways[$payment_method] ) ) {
    		$content = $payment_gateways[$payment_method]->get_title();
    	}
    	return $content;
    }, 50, 4 );
    add_filter( 'wcfm_withdrawal_reverse_additional_info_column_label', function( $label ) {
    	return 'Payment';	
    });
    add_filter( 'wcfm_withdrawal_reverse_additonal_data_hidden', '__return_false' );
    
    add_filter( 'wcfm_withdrawal_reverse_gross_amount', function( $amount, $wcfm_reverse_withdrawal_request_single ) {
    	$amount = wc_price( $wcfm_reverse_withdrawal_request_single->gross_total ); 
    	return $amount;
    }, 50, 2 );

    Add custom code(s) to your child theme’s functions.php
    In case you do not have child theme then add those using this plugin –?https://www.ads-software.com/plugins/code-snippets/

    Thank You

    Thread Starter stanalex7

    (@stanalex7)

    Thank you so much, I really appreciate your support, and now I do understand that the customization service is not reserved for premium users.
    The snippet works perfect for me, but I also asked in mail ( and didn t get a response) if it is possible to add a new column , with the date when order was completed ( or replace the actual column date – which is the date when the order was received with the date when the order was completed)
    I would really appreciate your response.
    Thank you
    Stay safe!

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    and now I do understand that the customization service is not reserved for premium users.

    – It’s open for all. But right now we are helpless so disabled this service for few days.
    Sorry, for the trouble.

    if it is possible to add a new column , with the date when order was completed ( or replace the actual column date – which is the date when the order was received with the date when the order was completed)

    – What date will will visible to those orders which are not yet completed?

    Thank You

    Thread Starter stanalex7

    (@stanalex7)

    If the order is not yet completed , maybe just put a ” – ” sign , or left the field empty.
    Thank you!

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Please use this snippet for the purpose-

    add_filter( 'wcfm_order_date_display', function( $order_date, $order_id, $order ) {
    	$the_order = wc_get_order( $order_id );
    	$order_status = sanitize_title( $the_order->get_status() );
    	if( $order_status == 'completed' ) {
    		$order_date = $the_order->get_date_completed();
    		$order_date = $order_date->date_i18n( wc_date_format() . ' ' . wc_time_format() );
    	} else {
    		$order_date = '–';
    	}
    	return $order_date;
    }, 50, 3 );

    Thank You

    Thread Starter stanalex7

    (@stanalex7)

    Thank you for your response.
    Unfortunately, I think there was a misunderstanding, and I am sorry for that.
    The snippet you gave me modify the date in the orders tab – ( https://ibb.co/xJrXQcd ) , but not in the reverse withdrawal tab , as it was intended . In the reverse withdrawal tab, the date is the old one ( the date when the order was received ) (https://ibb.co/tC5QTN9)
    So , to be clear, I want only the date from reverse withdrawal page to be the date when the order was completed, the dates from the other pages ( eg. orders page ) should stay the same.
    Thank you!

    Plugin Author WC Lovers

    (@wclovers)

    Ok, I misunderstood that.

    but reverse withdrawal page does not show order date.

    it shows reverse withdrawal created date and when it paid it shows paid date.

    Thread Starter stanalex7

    (@stanalex7)

    Thank you for clarification, I understand now.
    Anyway, I would prefer instead of reverse withdrawal created / paid date , to change it to order completed date .
    Hope this is possible . In my country I need this information in the reverse withdrawal panel for my accountant to make all the legal paperwork.
    Sorry for all the trouble.
    Thank you !

    Plugin Author WC Lovers

    (@wclovers)

    Add this snippet to your site –

    add_filter( 'wcfm_withdrawal_reverse_date', function( $reverse_date, $reverse_withdrawal ) {
    	$order_id = $reverse_withdrawal->order_id;
    	$the_order = wc_get_order( $order_id );
    	$order_status = sanitize_title( $the_order->get_status() );
    	if( $order_status == 'completed' ) {
    		$reverse_date = $the_order->get_date_completed();
    		$reverse_date = $reverse_date->date_i18n( wc_date_format() . ' ' . wc_time_format() );
    	}
    	return $reverse_date;
    }, 50, 2 );

    But this will work after WCFM 6.5.1 version update.

    Thank You

    Thread Starter stanalex7

    (@stanalex7)

    Thank you! I will let you know if this works when the 6.5.1 update will be available.

    Thread Starter stanalex7

    (@stanalex7)

    Hi guys! I just updated to WCFM 6.5.1, and I added the snippet you sent me. There is an issue with the date picker filter from the reverse withdrawal panel. The Date Picker, still selects the old date ( reverse withdrawal created date / paid date ) and not the new date that we added through the snippet.
    For example, this order was created on May 15th ( https://ibb.co/6WGXkjZ ) , and completed today, on June 9th , so in the reverse withdrawal panel ( with the snippet you gave me), the date that is displayed is the date when the order was completed ( June 9th – https://ibb.co/58CJt8F ) – so far is very good.
    The problem : if I select from the date picker the month June for example, the order is not displayed ( https://ibb.co/JRxgsZF ) , but If I select the range when the order was placed ( May ) , the order is displayed.
    So, I would like the date picker to get the date when the order is completed and not the reverse withdrawal date/paid date.
    Hope You can understand what I ask for
    I am so sorry for the trouble, and I really appreciate your effort.
    Thank you!

    Plugin Author WC Lovers

    (@wclovers)

    Well, this date range filter fetch reverse withdrawal by their created date. Not by order complete date.

    Thread Starter stanalex7

    (@stanalex7)

    And , my question is , can I change the date range filter to fetch reverse withdrawal by order complete date ?
    Or if you can t do that , can you please recommend me someone who can ?
    Thank you !

    Plugin Author WC Lovers

    (@wclovers)

    NO, it’s not possible.

    If possible, I will provide you solution, no third party will require.

    Thread Starter stanalex7

    (@stanalex7)

    Sorry , I don t fully understand what you are saying. Can that range date filter be changed to fetch by completed date or not?
    At first I understood that is not possible, but after you said that if it is possible , you will provide a solution .
    This means you will look into it and if there is a way , you will do it for me ?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Problem with premium support’ is closed to new replies.