WCMp Stripe Marketplace
-
AuthorPosts
-
-
September 1, 2021 at 7:11 PM #126581MaxenceTPParticipant
Hello,
I noticed that with WCMP Paypal Marketplace, when a user makes an order, he sees in his paypal activity the different payments: https://prnt.sc/1qd3jxv
I have several questions about this:
– So this means that he will know the commissions that are taken and how much the seller is paid. Is it possible that he only sees the transaction to the Store of the order amount but that the payment is still separated?
– Is it possible to show the amount of the transaction on the checkout page that will be paid to the admin, in this way https://prnt.sc/1qd3m62?
– If the seller decides to refund the customer via paypal, will the admin also have to refund the transaction on his account?Thanks for your help
-
September 2, 2021 at 8:16 PM #127108MVX Support NinjaKeymaster
Hi Maxence, thanks for getting in touch with us.
Our replies are inline :
– So this means that he will know the commissions that are taken and how much the seller is paid. Is it possible that he only sees the transaction to the Store of the order amount but that the payment is still separated?
>> PayPal will always display how much a user has paid and to whom.
I am sorry this all is carried out by PayPal.– Is it possible to show the amount of the transaction on the checkout page that will be paid to the admin, in this way https://prnt.sc/1qd3m62?
>> We only display order related information to PayPal. Now PayPal API shows thoese data. So, can you please contact PayPal whether they have this support in their API
– If the seller decides to refund the customer via paypal, will the admin also have to refund the transaction on his account?
>> Yes, if there is a refund request, then yes admin needs to refund.
-
September 3, 2021 at 2:14 AM #127114MaxenceTPParticipant
Thanks for your answer, about “Is it possible to show the amount of the transaction on the checkout page that will be paid to the admin, in this way https://prnt.sc/1qd3m62?”
That’s not related to paypal API, I just want to display to the customer the amount that he will pay to the admin (that he is not surprised by 2 payments on his paypal account), which is a value WCMP send to paypal. So WCMP know the value of the admin commission and I just want to show it on the checkout page
-
September 3, 2021 at 7:12 PM #127143MVX Support NinjaKeymaster
@MaxenceTP, we calculate commission once an order is placed. But in order to display them before, requires good amount of custom code.
-
September 3, 2021 at 10:31 PM #127152MaxenceTPParticipant
It’s not possible to calculate it before the order is placed ? On the checkout page ?
-
September 6, 2021 at 6:55 PM #127214MVX Support NinjaKeymaster
@MaxenceTP, yes that is possible.
But that will require you to add all our commission calculations before the checkout via custom code. So as you can assume, this would require a huge amount of coding.
-
September 16, 2021 at 1:49 AM #127644MaxenceTPParticipant
Do you have a function that I can call to get the amount of the admin commission of a specific product ?
In fact I need to have an array with the list of products in the basket, I do a foreach of all these products and I add in a variable the sum of all the admin commisions to have the total.
That then I display on the checkout page. It doesn’t seem so complicated, maybe I’m wrong -
September 16, 2021 at 6:26 PM #127687MVX Support NinjaKeymaster
Hi,
As per our default flow WCMp calculate commission after order. If you want to calculate the admin commission before order process then you have to add custom code for this.Let me know you you need any help,
Regards,
-
September 16, 2021 at 6:47 PM #127690MaxenceTPParticipant
Yes that’s exactly what I want to do.
Can you help me with that ? -
September 16, 2021 at 8:11 PM #127708MVX Support NinjaKeymaster
I am afraid there is no ready-made code for this. Hence you need to create this from your end.
-
September 17, 2021 at 1:28 AM #127732MaxenceTPParticipant
Do you have a function that I can call to get the amount of the admin commission of a specific product ?
-
September 17, 2021 at 5:56 PM #127753MVX Support NinjaKeymaster
@MaxenceTP, for now WCMp calculated the commission once an order is placed.
However, you can add the commission amount per product and then fetch the same for that product.
-
September 18, 2021 at 3:58 PM #127807MaxenceTPParticipant
Yes that what I want to do. How to get the commission amount of a product ?
-
September 21, 2021 at 7:06 PM #127931NerdySupportExpert MoumitaKeymaster
Maxence, you need to check how we save the commission per product in our classes/class-wcmp-product.php, and check ‘function process_vendor_data()’ line no 928. Here is our source code link : https://github.com/wcmarketplace/dc-woocommerce-multi-vendor
-
September 29, 2021 at 2:44 AM #128369MaxenceTPParticipant
Ok so it works when the commission is set on the product. But when the commission on the product is empty, how to get the commission of the vendor ?
I have the variable $product, I need to find the $vendorID to get the meta
-
September 29, 2021 at 8:35 PM #128417Raju The Cool GuyKeymaster
Hi,
You can find commission value by product id and vendor id using get_commission_amount this function. Here are the details https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/blob/master/classes/class-wcmp-calculate-commission.php#L650 -
October 4, 2021 at 11:32 PM #128618MaxenceTPParticipant
It’s working thanks
-
October 5, 2021 at 5:28 PM #128636MVX Support NinjaKeymaster
You are welcome!
-
-
AuthorPosts
The topic ‘Questions about WCMP Paypal Marketplace’ is closed to new replies.