WCMp Advanced Frontend Manager
-
AuthorPosts
-
-
April 6, 2022 at 4:15 AM #136166AnonymousInactive
I am testing the Vendor dashboard and it’s saying there’s an error when request withdrawl button is clicked. I made sure withdrawl locking period is below the requested amount and the disbursement threshold period has been completed and this error still persists
-
April 6, 2022 at 2:43 PM #136178MVX Support NinjaKeymaster
Hi,
The default flow is such that if admin sets disbursement threshold value as 20$ then vendors will having commission either 20$ or more than 20$ can request for withdrawal.Also if the Withdrawal Locking period is 1 day it means the vendor cannot request for withdrawal before 1 day from the day of earning the commission.
(see screenshot- https://prnt.sc/BcXGutR2ZJ5q )Now Restrict Order Status from Withdrawal allows admin to restrict their vendor from requesting for commission withdrawal during different status of order. (see screenshot- https://prnt.sc/7Z4bI1uuRcKz )
Kindly check the Payment settings of admin and vendor via admin dashboard>WCMp>Settings>Payments and configure accordingly.
However if the issue still persists kindly create a staging site and share your admin, ftp access.
Please note that do not forget to mark the response as private while sharing the access. -
April 7, 2022 at 7:32 PM #136218AnonymousInactiveThis reply has been marked as private.
-
April 7, 2022 at 8:21 PM #136230MVX Support NinjaKeymaster
Thank you for sharing the access.
Can we disable plugin and switch the theme to default for testing purpose? -
April 7, 2022 at 8:25 PM #136231MVX Support NinjaKeymaster
Share your ftp access too.
-
April 7, 2022 at 11:20 PM #136235AnonymousInactiveThis reply has been marked as private.
-
April 8, 2022 at 11:31 AM #136252MVX Support NinjaKeymaster
Can we disable plugin and switch the theme to default for testing purpose?
-
April 8, 2022 at 12:17 PM #136256MVX Support NinjaKeymasterThis reply has been marked as private.
-
April 8, 2022 at 6:14 PM #136262AnonymousInactiveThis reply has been marked as private.
-
April 8, 2022 at 6:48 PM #136265AnonymousInactiveThis reply has been marked as private.
-
April 8, 2022 at 7:53 PM #136270NerdySupportExpert MoumitaKeymasterThis reply has been marked as private.
-
April 11, 2022 at 5:15 PM #136341AnonymousInactive
The only thing I can think off is allowing control panel access
-
April 12, 2022 at 8:48 PM #136384AnonymousInactiveThis reply has been marked as private.
-
April 13, 2022 at 9:47 AM #136405NerdySupportExpert MoumitaKeymasterThis reply has been marked as private.
-
April 13, 2022 at 4:39 PM #136420AnonymousInactive
so when a vendor request a withdrawal it automatically goes to their paypal? I thought I had to approve it first?
would I still have that issue if the vendor select direct bank transfer instead as their payout method? -
April 14, 2022 at 2:40 PM #136442MVX Support NinjaKeymaster
Hi, our replies are inline :
so when a vendor requests a withdrawal it automatically goes to their PayPal? I thought I had to approve it first?
>> If the vendor is using PayPal and ask for a withdrawal, then as per our flow commission would be paid automatically.would I still have that issue if the vendor select direct bank transfer instead as their payout method?
>> For direct bank transfers there is no automatic payout for vendors. This means once they will ask for a withdrawal, you have to pay the vendors manually. -
April 18, 2022 at 11:35 PM #136592AnonymousInactive
Hello, I am the developer of Sueanna Toney
the issues is, When vendor trying to send withdrawal request of their payment the request is not sending and showing an error message. -
April 19, 2022 at 2:23 PM #136604NerdySupportExpert MoumitaKeymaster
Hi, as we can see this vendor is using Bank Transfer: nubiandiamantetoney
Hence admin manually needs to send the money manually and mark the commission as paid.
For this vendor leemani2003alt, he/she is using paypal. As per admin’s account, we are getting this error :
{“name”:”AUTHORIZATION_ERROR”,”message”:”Authorization error occurred.”,”debug_id”:”658bf0104696d”,”information_link”:”https:\/\/developer.paypal.com\/docs\/api\/payments.payouts-batch\/#errors”,”links”:[]}
It seems like your account in PayPal is not authorized. Please contact the PayPal team regarding this.
-
April 19, 2022 at 6:51 PM #136606AnonymousInactive
Hey I never saw anything error like this as you say:
{“name”:”AUTHORIZATION_ERROR”,”message”:”Authorization error occurred.”,”debug_id”:”658bf0104696d”,”information_link”:”https:\/\/developer.paypal.com\/docs\/api\/payments.payouts-batch\/#errors”,”links”:[]}It seems like your account in PayPal is not authorized. Please contact the PayPal team regarding this.
this must be your source code problem there was no authorization error from the paypal account.
And the vendor didn’t use any bank account. This is insane the vendor never put any bank details or choose the bank account options
Just analyze carefully of your plugin and you will see there error from your plugin source code -
April 19, 2022 at 8:03 PM #136611AnonymousInactive
sorry i didn’t explain bank transfer option to my developer who replied above so he was confused we are trying to contact paypal to resolve this issue i will update
-
April 20, 2022 at 10:14 AM #136618MVX Support NinjaKeymaster
Sure
-
May 1, 2022 at 12:38 AM #137005AnonymousInactive
it has not worked but I’m thinking perhaps because i dont have Mass pay option available in my country that it is not enabling me, this issue has baffled even my developer, do you have to have mass pay enabled in Paypal to access this feature. Also …can you do a manual paypal just like with direct transfer so when a vendor request withdrawal with paypal i do it manually and still get the notification email ?
-
May 2, 2022 at 4:59 PM #137036NerdySupportExpert MoumitaKeymaster
@Sueanna Toney, we will definitely assit you with setting up your payment.
But before that, you just need one small piece of information from the PayPal team. As you can see we do provide two Paypal option i.e. PayPal Masspay and PayPal Payout: https://prnt.sc/vkf49MBPbFwb
So, please contact the PayPal team regarding your account and ask them which PayPal account type is supported for your account. Once we will have this information, we can assist you accordingly.
-
May 2, 2022 at 5:29 PM #137039AnonymousInactive
I already contacted them, in my region Paypal Masspay is not allowed
-
May 2, 2022 at 8:48 PM #137045AnonymousInactive
Since i’m having the error code from Paypal when i try to send payments automatically, i wanted to try a manual paypal payout instead and this thread relates to me and what I want, https://multivendorx.com/support-forum/topic/help-with-german-paypal/
but in your answer you told him to rename the bank transfer option to paypal so he can pay vendors manually using that option, but i want both paypal and direct bank transfer option enabled for manual payment options accessable to vendors -
May 4, 2022 at 1:02 AM #137061NerdySupportExpert MoumitaKeymaster
@Sueanna Toney, in that case, you just have to add another payment mode using custom code.
We do have a coding guide, please do follow this doc : https://docs.google.com/document/d/1JJ1MpatgaYPYCb1O-kwNzgT91ApIMtLFavYMlx3fXY8/edit?usp=sharing
-
May 5, 2022 at 6:39 PM #137118AnonymousInactive
thankyou this helps, so this coding would work for any payment gateway correct?
-
May 5, 2022 at 8:38 PM #137128NerdySupportExpert MoumitaKeymaster
As this doesn’t require automatic payment, hence you can use any Payment mode name as per your need.
-
May 7, 2022 at 11:24 PM #137159AnonymousInactive
but when you choose this manual payment method the vendor isn’t able to see withdrawals in their dashboard or earnings
-
May 9, 2022 at 6:43 PM #137178NerdySupportExpert MoumitaKeymaster
@Sueanna Toney, can you please share a temporary admin, ftp access so we can check.
While sharing the access don’t forget to mark the response as private. -
May 11, 2022 at 6:23 AM #137201AnonymousInactiveThis reply has been marked as private.
-
May 11, 2022 at 6:38 AM #137202AnonymousInactive
So the previous problem I queried about concerning the earnings not seen with maual payment method has been solvedsince I see the stats when i go into stats and reports BUT it isn’t at the forefront i have to tap on stats and reports. Anyway the vendor named Leemani SENT 2 withdrawal requests and i got neither this issue happened right after i added another manual payment
-
May 11, 2022 at 11:09 PM #137228NerdySupportExpert MoumitaKeymasterThis reply has been marked as private.
-
May 12, 2022 at 6:32 AM #137234AnonymousInactiveThis reply has been marked as private.
-
May 12, 2022 at 8:05 PM #137248NerdySupportExpert MoumitaKeymasterThis reply has been marked as private.
-
May 12, 2022 at 11:04 PM #137255AnonymousInactive
okay Here I am sending the custom code in screenshot
-
May 12, 2022 at 11:09 PM #137259AnonymousInactive
I am also sending the code in php file
-
May 12, 2022 at 11:11 PM #137260AnonymousInactive
Here sending you the code in writing format
this is custom template<?php
/*
file location: https://barbadosonlinestores.com/wp-admin/plugins/dc-woocommerce-multi-vendor/classes/gateways/class-wcmp-gateway-paypals-transfer.php*/
if (!defined(‘ABSPATH’)) {
exit;
}class WCMp_Gateway_PayPal_Transfer extends WCMp_Payment_Gateway {
public $id;
public $message = array();
public $gateway_title;
public $payment_gateway;public function __construct() {
$this->id = ‘direct_paypal’;
$this->gateway_title = __(‘Paypal transfer’, ‘dc-woocommerce-multi-vendor’);
$this->payment_gateway = $this->id;
$this->enabled = get_wcmp_vendor_settings(‘payment_method_direct_paypal’, ‘payment’);
}public function gateway_logo() { global $WCMp; return $WCMp->plugin_url . ‘assets/images/’.$this->id.’.png’; }
public function process_payment($vendor, $commissions = array(), $transaction_mode = ‘auto’) {
$this->vendor = $vendor;
$this->commissions = $commissions;
$this->currency = get_woocommerce_currency();
$this->transaction_mode = $transaction_mode;
if ($this->validate_request()) {
$this->record_transaction();
if ($this->transaction_id) {
return array(‘message’ => __(‘New transaction has been initiated’, ‘dc-woocommerce-multi-vendor’), ‘type’ => ‘success’, ‘transaction_id’ => $this->transaction_id);
}
} else {
return $this->message;
}
}public function validate_request() {
global $WCMp;
if ($this->enabled != ‘Enable’) {
$this->message[] = array(‘message’ => __(‘Invalid payment method’, ‘dc-woocommerce-multi-vendor’), ‘type’ => ‘error’);
return false;
}
if ($this->transaction_mode != ‘admin’) {
/* handel thesold time */
$threshold_time = isset($WCMp->vendor_caps->payment_cap[‘commission_threshold_time’]) && !empty($WCMp->vendor_caps->payment_cap[‘commission_threshold_time’]) ? $WCMp->vendor_caps->payment_cap[‘commission_threshold_time’] : 0;
if ($threshold_time > 0) {
foreach ($this->commissions as $index => $commission) {
if (intval((date(‘U’) – get_the_date(‘U’, $commission)) / (3600 * 24)) < $threshold_time) {
unset($this->commissions[$index]);
}
}
}
/* handel thesold amount */
$thesold_amount = isset($WCMp->vendor_caps->payment_cap[‘commission_threshold’]) && !empty($WCMp->vendor_caps->payment_cap[‘commission_threshold’]) ? $WCMp->vendor_caps->payment_cap[‘commission_threshold’] : 0;
if ($this->get_transaction_total() > $thesold_amount) {
return true;
} else {
$this->message[] = array(‘message’ => __(‘Minimum threshold amount for commission withdrawal is ‘ . $thesold_amount, ‘dc-woocommerce-multi-vendor’), ‘type’ => ‘error’);
return false;
}
}
return parent::validate_request();
}}
?>
-
May 12, 2022 at 11:11 PM #137261AnonymousInactive
<?php
/*
file location: https://barbadosonlinestores.com/wp-admin/plugins/dc-woocommerce-multi-vendor/templates/vendor-dashboard/vendor-billing.php*/
if (isset($payment_admin_settings[‘payment_method_direct_bank’]) && $payment_admin_settings[‘payment_method_direct_bank’] = ‘Enable’) {
$payment_mode[‘direct_bank’] = __(‘Direct Bank’, ‘dc-woocommerce-multi-vendor’);
}/* to show the from enter paypal mail*/
<div class=”payment-gateway payment-gateway-direct_paypal”>
<div class=”form-group”>
<label for=”vendor_bank_name” class=”control-label col-sm-3 col-md-3″><?php _e(‘PayPal Email’, ‘dc-woocommerce-multi-vendor’); ?></label>
<div class=”col-md-6 col-sm-9″>
<input class=”form-control” type=”text” id=”vendor_bank_name” name=”vendor_bank_name” class=”user-profile-fields” value=”<?php echo isset($vendor_bank_name[‘value’]) ? $vendor_bank_name[‘value’] : ”; ?>”>
</div>
</div>
</div>?>
-
May 12, 2022 at 11:12 PM #137262AnonymousInactive
<?php
/*
file location: https://barbadosonlinestores.com/wp-admin/plugins/dc-woocommerce-multi-vendor/admin/class-wcmp-settings-payment.php*/
‘direct_paypal’ => __(‘Direct Paypal Transfer’, ‘dc-woocommerce-multi-vendor’),
?>
-
May 13, 2022 at 5:11 PM #137275NerdySupportExpert MoumitaKeymaster
@Sueanna Toney, you have edited the core plugin. Please never edit the core plugin as if you update the plugin, the codes will also be removed.
Also editing the core plugin can also affect the plugin’s default flow.So, kindly reinstall WC Marketplace or update the plugin to the latest version.
After that add the custom code (that we have shared earlier) to your child’s theme.
Once these are done, please check the flow again.Do keep us posted.
-
May 13, 2022 at 7:54 PM #137278AnonymousInactive
Okay tell me the hook to put that code in those specific files and places. I already let you know to put the code which files and which places
-
May 13, 2022 at 8:12 PM #137279AnonymousInactive
Or I have already send you all the code, now please put the code in child theme or any other best way
-
May 13, 2022 at 8:48 PM #137283NerdySupportExpert MoumitaKeymaster
@Sueanna Toney, as much as I want to help you out but working on a custom code is quite difficult and currently we don’t have such bandwidth.
Please do follow our coding guide here : https://docs.google.com/document/d/1JJ1MpatgaYPYCb1O-kwNzgT91ApIMtLFavYMlx3fXY8/edit?usp=sharing
If you need any coding guidance, please do let us know.
-
May 14, 2022 at 1:01 PM #137296AnonymousInactive
You said not to override or putting any code in plugin core file so it would not work after updating or would spoil the plugin work flow. They why did you ask to edit or paste this code to the plugin???
-
May 15, 2022 at 8:33 PM #137311AnonymousInactive
Hello it already have passed 30 hours but I got no response. Tell me do you suggest to edit or put custom code in core files. As you already told not to do it but in your new attachment there is code which need to put in core file. So tell me what exactly I can do ?
-
May 16, 2022 at 1:48 PM #137321NerdySupportExpert MoumitaKeymaster
@Sueanna Toney, sorry for the delayed response as we were closed due to the weekend.
As you know like any plugin, you need to add any modification to the theme, preferably the child theme.
If you check the document we shared, we have provided the code snippet and further custom code reference for you. SO you can follow that and add your own coding.KIndly check the coding doc properly, this will assist you further with the custom flow.
-
May 17, 2022 at 8:03 AM #137335AnonymousInactive
The code you sent that is Invalid payment method. That’s no working. There is mistake in the code. Just check that carefully and send again to me
-
May 17, 2022 at 10:06 PM #137342MVX Support NinjaKeymaster
@Sueanna Toney, it seems like you haven’t added code for the withdrawal part.
As shared in the doc, you need to follow this :
Enable withdraw option with new payment method at vendor end,
First you have to use this hook ‘wcmp_payment_gateways’
Then you have to create class and also extend that new class with ‘WCMp_Payment_Gateway’
For reference please check
https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/blob/17b2adeb29929c4b53f570d9d441b75ea78382b4/classes/class-wcmp-payment-gateways.php
https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/blob/a7f8e39679db8f5bf30684c044e6142e8ebb4871/classes/class-wcmp.phpAnd within that new class you have to define process_payment() function and validate_request() function.
After that you will be able to create a withdrawal request.
-
-
AuthorPosts
The topic ‘Error Message when vendor request withdrawal’ is closed to new replies.