Custom Withdrawal 2 ( #108054) Resolved
January 5, 2021 at 5:27 PM #112985
Trust you are well.
I would like to follow up on the below request concerning a custom way my users can request a total withdrawal rather than ticking per items.
Kindly find below the last reply I got from you and I would like to override this flow, what can i do at this stage?
My replies are inline:
As per your requirement it’s needs good amount of custom code to change our default flow.
>> First of all you need to default flow of vendor dashboard >> vendor-withdrawal table in our default flow we selecting the id and then process the ids and make a withdrawal request, if you need to change then override the flow as per your requirement.
>> Then use above hook to change the transaction amount.
January 7, 2021 at 10:02 AM #113149WCMp Support NinjaModerator
Thank you for reaching out to us.
Can you please share the thread link for the above mentioned replies.
January 11, 2021 at 1:17 AM #113382
Please find below :
January 11, 2021 at 6:58 PM #113428
It needs good amount of custom code on your end and have to change the default flow.
As per your requirement by default you can not add any field on withdrawal page. if you want this then you have to code for your end.
If you want to add a field on vendor dashboard >> under storefront then using below action hook
To save data use below action hook
Then you have to modify the withdrawal page default flow it need good amount of code.
disable data table select check box.
by overridden templates/vendor-dashboard/vendor-withdrawal.php template by copying it to yourtheme/dc-product-vendor/vendor-dashboard/vendor-withdrawal.php.
Then use below filter to change the amount –
January 13, 2021 at 7:37 PM #113637
Please I am really struggling to understand the new flow
“If you want to add a field on vendor dashboard >> under storefront then using below action hook”
On the above statement, are you referring to change the widthdrawal page to allow withdrawal under StoreFront page?
“Then you have to modify the withdrawal page default flow it need good amount of code.
disable data table select check box.”
On the above statement, once I disable the table, Is the next step adding “wcmp_commission_transaction_amount”?
and where should I add the above filter?
January 14, 2021 at 7:06 PM #113716
our replies are inline –
>> On the above statement, are you referring to change the withdrawal page to allow withdrawal under StoreFront page?
— No, using below hook you can add a field where vendor can set the withdrawal amount or you also set a field for vendor dashboard withdrawal . For that you have to override templates/vendor-dashboard/vendor-withdrawal.php template by copying it to yourtheme/dc-product-vendor/vendor-dashboard/vendor-withdrawal.php
and also you have to modify the flow of withdrawal page.
Then using above hook you can change the amount of transaction.
January 14, 2021 at 10:26 PM #113732
Thank you, please where can I add the below codes?
I have overridden templates/vendor-dashboard/vendor-withdrawal.php template by copying it to yourtheme/dc-product-vendor/vendor-dashboard/vendor-withdrawal.php.
How would you recommend me to modify the flow of withdrawal page?
January 18, 2021 at 5:45 PM #113935
You have to add code in the function.php of the current active theme when you are using hook and filter.
>> It needs huge amount of custom code. please check out code and find the way.
January 19, 2021 at 1:55 PM #113976
Please can you take me step by steps on how I can achieve this and advising me on the necessary codes, please.
January 19, 2021 at 7:11 PM #114011
As per our default flow on withdrawal page all checked commission are going for withdrawal request so you have to change this flow it is need good amount of custom coding you have to take a look on our code and then change the flow. after using this filter you can add this amount for withdrawal.
Please take a look our plugin flow and modify using hook and filter or template override.
January 29, 2021 at 9:34 PM #114702
February 2, 2021 at 10:46 AM #114860Fantastic KuhuKeymaster
Your requirement deals with complete [plugin’s flow change (as discussed). Wish we could assist you with custom code, but as per the support policy- You may wish to tweak/customize our plugins and themes to suit your exact business need. We’re happy to try help with these modifications, but only if a customization requires few lines (10-15) of new code. However, if your requirement requires more than that kind of efforts, we recommend you to contact a developer or commission us for “Custom development” services.
Hope you can understand our concern too.
April 7, 2021 at 2:33 PM #119149Support Hero SrutakirtyModerator
We have not received any update from you for a long. Hope this ticket is already been resolved.
We are now closing this ticket. Kindly create a new one if you need any further help.
The topic ‘Custom Withdrawal 2 ( #108054)’ is closed to new replies.