Custom Withdrawal

WCMp Vendor Vacation

Custom Withdrawal Open

Viewing 7 reply threads
  • Author
    Posts
    • #107061
      Benny
      Participant

      Hi there,
      Is there a way to have a text field where by the logged in user can enter the total amount he/she would like to withdraw from her WCMp Account, on the withdrawal page?

    • #107112
      abhirup
      Moderator

      Hi,
      For your requirement you need some custom code on your end.
      Override this template by copying it to yourtheme/dc-product-vendor/vendor-dashboard/vendor-withdrawal.php
      do your modification.

      Regards,

    • #107419
      Benny
      Participant

      Please can you advise me on the custom code to achieve this?

    • #107491
      abhirup
      Moderator

      Hi,
      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.
      Then use filter for change the amount of amount –

      wcmp_commission_transaction_amount
      Copy

      Regards,

    • #107845
      Benny
      Participant

      Thank you bhirup, how about user can only withdraw the total amount from their account by clicking on Request withdrawal.
      Is it possible ?

    • #107877
      abhirup
      Moderator

      Hi @Benny,
      My replies are inline:
      >> how about user can only withdraw the total amount from their account by clicking on Request withdrawal.
      Is it possible ?
      — Yes you can do it using below hook and some custom code and template override.

      wcmp_commission_transaction_amount
      Copy

      It needs good amount of custom code and need to change our default flow. As I said before.

      Let me know if you need any possible help.

      Regards,

    • #108024
      Benny
      Participant

      Yes please, I need any possible help @abhirup

    • #108054
      abhirup
      Moderator

      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.

Viewing 7 reply threads

Please LOGIN to reply to this topic

Wish you a Happy Durga Puja!!! Try code "HAPPYPUJA2020" to get 20% discount!! Our office will be closed from 22nd - 27th Oct!!

Buy Bundle at Slashed Price