Custom Withdrawal 2 ( #108054)

WCMp Vendor Vacation

Custom Withdrawal 2 ( #108054) Open

Viewing 9 reply threads
  • Author
    Posts
    • #112985
      Benny
      Participant

      Hi there,

      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?

      Regards
      ————————————————

      Hi,
      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.

      Thank You.

    • #113149

      Hello Benny,

      Thank you for reaching out to us.

      Can you please share the thread link for the above mentioned replies.

    • #113382
      Benny
      Participant
    • #113428
      abhirup
      Moderator

      Hi,
      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

      wcmp_after_shop_front
      Copy

      To save data use below action hook

      before_wcmp_vendor_dashboard
      Copy

      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 –

      wcmp_commission_transaction_amount
      Copy

      Regards,

    • #113637
      Benny
      Participant

      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?

      Regards

    • #113716
      abhirup
      Moderator

      Hi,
      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.

      Regards,

    • #113732
      Benny
      Participant

      Thank you, please where can I add the below codes?

      1. wcmp_after_shop_front

      2. before_wcmp_vendor_dashboard

      3. wcmp_commission_transaction_amount
      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?

    • #113935
      abhirup
      Moderator

      Hi,
      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.

      Regards,

    • #113976
      Benny
      Participant

      Hi Abhirup,

      Please can you take me step by steps on how I can achieve this and advising me on the necessary codes, please.

      Regards

    • #114011
      abhirup
      Moderator

      Hi @Benny,
      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.

      Regards,

Viewing 9 reply threads

Please LOGIN to reply to this topic

Buy all Marketplace addons together, check out our Bundle

Buy at Slashed Price