MultivendorX Pro
-
AuthorPosts
-
-
May 26, 2023 at 12:08 PM #192473Rishi ThakkerParticipant
On my site, I need split commission functionality for vendors.
1. A vendor published a product with a price of $100.
2. Then admin can assign vendor B for that particular product.
3. Now there are 2 vendors A and B in the product.
4. Admin can decide on commission in percentage for both sellers like A and B (A = 50%, B = 30%) and admin will keep from that 20%.
5. Customer will purchase that product after that both vendors and admin can able to get that commission.
6. On both vendor dashboards they can able see the order with that commission. also, the admin can see those details on the admin dashboard.It’s possible to display suborder on both vendor’s dashboards?
-
May 27, 2023 at 2:15 PM #192503NerdySupportExpert MoumitaKeymaster
Hi @Rishi Thakker, by default each product can have only one author i.e. vendor
That how that vendor earns money from selling that product.But the flow you are looking for, where you want to give commission to two vendors for a product, requires custom code.
please note this requires a huge amount of custom code. -
June 5, 2023 at 4:48 PM #192881Rishi ThakkerParticipant
I have added some static code for split vendor payment in MVX pro.
I have added one extra array distribution_list of the second vendor like this https://www.screenpresso.com/=bjJJb
Now I Need to generate a stripe token to create this payment I have reviewed the code and I was getting that the token was generated in $_POST so how can add one more value to the stripe_token?
Can you please guide me on generating the stripe token, so I can add it to the code?
You can also review this video for a better understanding https://www.screenpresso.com/=n2wFb -
June 5, 2023 at 6:45 PM #192891NerdySupportExpert MoumitaKeymasterThis reply has been marked as private.
-
June 6, 2023 at 9:36 AM #192915Rishi ThakkerParticipantThis reply has been marked as private.
-
June 6, 2023 at 9:59 PM #192945NerdySupportExpert MoumitaKeymaster
Rishi, our team is looking into this.
Kindly provide them some time. -
June 7, 2023 at 7:23 PM #192975Raju The Cool GuyKeymaster
Hi,
You can check our javascript code. Token codes are in the javascript file
Thanks -
June 9, 2023 at 12:55 PM #192872Rishi ThakkerParticipantThis reply has been marked as private.
-
June 9, 2023 at 12:55 PM #192874Rishi ThakkerParticipant
I have added some static code for split vendor payment in MVX pro.
I have added one extra array distribution_list of the second vendor like this https://www.screenpresso.com/=bjJJb.
Now I need to generate a stripe token to create this payment I have reviewed the code and I was getting that the token was generated in $_POST so how can add one more value to the stripe_token?
Can you please guide me on generating the stripe token so I can add it to the code?
You can also review this video for a better understanding https://www.screenpresso.com/=n2wFb. -
June 9, 2023 at 6:17 PM #193104Rishi ThakkerParticipant
I got the flow that how it’s working now I am stuck here How can I generate Commission ID for another vendor?
If we are able to generate the commission Id and its meta like commission amount, order, etc. so we can split that commission to another vendor and give it to them.
If you guide how can I generate commission data for another vendor like https://www.screenpresso.com/=qSURb that will be great to achieve over functionality.
Thanks! -
June 9, 2023 at 10:21 PM #193119NerdySupportExpert MoumitaKeymaster
@Rishi Thakker, the team will guide you with the coding procedure.
Provide them some time. -
June 10, 2023 at 2:19 PM #193148Raju The Cool GuyKeymaster
Hi,
Please check https://github.com/multivendorx/MultiVendorX/blob/main/classes/class-mvx-calculate-commission.php#LL43C1-L44C1 this code.
Thanks -
June 12, 2023 at 2:32 PM #193218Rishi ThakkerParticipant
Can you please guide me to where this suborder is created?
Screenshot: https://www.screenpresso.com/=tXmNb -
June 12, 2023 at 7:38 PM #193258Raju The Cool GuyKeymaster
Hi,
Here is the function link https://github.com/multivendorx/MultiVendorX/blob/main/classes/class-mvx-order.php#L444
Please check.
Thanks -
June 13, 2023 at 3:59 PM #193300Rishi ThakkerParticipant
I am getting all multiple vendor’s data where you distribute the payment for vendor and admin now I am stuck on that I want to distribute that payment to all vendors according to my data.
Please review this video for more information I have explained in detail: https://www.screenpresso.com/=8UKKb
Please give me some guidance on that so I can complete this functionality on my site.
Thank you! -
June 13, 2023 at 7:49 PM #193322Raju The Cool GuyKeymaster
Hi,
There is no ready-made code.
You can follow https://github.com/multivendorx/MultiVendorX/blob/main/classes/class-mvx-cron-job.php#L94 this link for reference.
Thanks -
August 25, 2023 at 5:27 PM #195527Sangita Support SquadKeymaster
Its been a while and we have not heard back from you. We presume your issue is fixed now. We are closing this thread. If you need help or face issue in future please open a new thread.
-
-
AuthorPosts
The topic ‘Split commission for vendors.’ is closed to new replies.