Just allow partial refund

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 8 reply threads
  • Author
    Posts
    • #67340
      CommunityCorals
      Participant

      Hi,

      the complete refund request includes a part of the shipping cost. This is not visible to the vendor and is nothing I have a business case for. Is it possible to just show vendor the partial refund (excl. shipping) option and therefore always have “is_partially_refunded” set as 1?

      Thanks & BR
      Dominique

    • #67450
      Jose
      Participant

      Hi Dominique,

      Try with this one. Work fine for me.

      add_filter( 'wcfm_refund_fields_request', function( $refund_fields ) {
      	if( isset( $refund_fields['wcfm_refund_request'] ) ) {
      		$refund_fields['wcfm_refund_request']['options'] = array( 'partial' => __( 'Partial Refund', 'wc-multivendor-marketplace' ) );
      	}
      	return $refund_fields;
      });

      Regards,

    • #67453
      CommunityCorals
      Participant

      Hi Jose,

      thank you very much. I will check it out !!

      BR
      Dominique

    • #67488
      WCFM Forum
      Keymaster

      Thanks @jose

    • #67591
      CommunityCorals
      Participant

      Works perfectly fine. Thank you Jose.


      @wcfm
      : Maybe it would make sense to have an area in the forum where everybody can post snippets? Think there are some nice snippets out there that we all could benefit from?

    • #67618
      Jose
      Participant

      Your welcome ! but this code was provided by Wcfm !!

      The best will be to have in documentation all options to active or desactive many function that not are allow in admin of wcfm.

      Example: Exist a lot of filter that we can use in function.php, but not all are easy to found by the forum or are out of date.

      Regards,

    • #67873
      WCFM Forum
      Keymaster

      Hi,

      We have started creating such a documentation – https://docs.wclovers.com/tweaks/

      Thank You

    • #67886
      Jose
      Participant

      Hi,

      It’s a great news for us !!

      Regards,

    • #67929
      CommunityCorals
      Participant

      That´s amazing!!

Viewing 8 reply threads
  • You must be logged in to reply to this topic.