Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Just allow partial refund
- This topic has 8 replies, 3 voices, and was last updated 5 years, 5 months ago by CommunityCorals.
- AuthorPosts
- June 13, 2019 at 9:41 am #67340CommunityCoralsParticipant
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 - June 13, 2019 at 7:34 pm #67450JoseParticipant
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,
- June 13, 2019 at 7:41 pm #67453CommunityCoralsParticipant
Hi Jose,
thank you very much. I will check it out !!
BR
Dominique - June 13, 2019 at 9:00 pm #67488WCFM ForumMember
Thanks @jose
- June 14, 2019 at 8:49 am #67591CommunityCoralsParticipant
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? - June 14, 2019 at 12:23 pm #67618JoseParticipant
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,
- June 15, 2019 at 4:59 pm #67873WCFM ForumMember
- June 15, 2019 at 5:23 pm #67886JoseParticipant
Hi,
It’s a great news for us !!
Regards,
- June 16, 2019 at 5:47 am #67929CommunityCoralsParticipant
That´s amazing!!
- AuthorPosts
- You must be logged in to reply to this topic.