PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Functionality with Vendors

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
12

Hey,

I am trying to make WOOCS work with WCMP - WC marketplace.

When customers, pay in different currencies, the vendor dashboard doesn't respect different currencies. The amount of one currency is matched with the symbol of other currencies.

I came across a feature in your plugin - Individual prices based on user role(*)

Can the above feature be used to set a fixed currency for all the user's role with"vendor"? I don't want to change that for all products one by one.

Just change the currency for all the Vendors to USD.

So if the customer pays in EURO, it shall properly convert to USD if the Vendor is logged in into his dashboard.

Please advise.

Hello

Read  this please - https://currency-switcher.com/woocs-labs/

Can the above feature be used to set a fixed currency for all the user's role with"vendor"? - unfortunately the plugin does not have this feature

You can try  add  custom code. Example:

add_filter('wp_head',function(){

//check  your  current  user

$is_vendor=true;//false

if(class_exists('WOOCS')  AND  $is_vendor){
global $WOOCS;
$WOOCS->reset_currency();
}
});

 

Hi Pablo,

Thank you for your initial help.

Please allow me to explain this in some detail.

My query is regarding WC Marketplace (WCMP) - https://wc-marketplace.com/

They have around 10,000+ installations as seen on wordpress - https://wordpress.org/plugins/dc-woocommerce-multi-vendor/

My query:

  1. When a customer purchases in a different currency than the base currency, the commission to the vendor is not addressed in correct currency. For example, if a customer purchased in EUR, the amount of commission earned will be in EUR, but WCMP will add a $ Sign. So it will look like the amount is in USD. Because USD in this case is the base currency. The solution might be to give the amount to base currency to WCMP to record the commissions.
  2. The second thing is to lock the currency for vendor dashboard to the base currency ONLY.

I am happy tat the second query is already solved by using the DOKAN Adjustment your team has provided here - https://currency-switcher.com/dokan/

When I use the following code, the currency is set to USD in WCMP no matter the geo-location!

add_filter('wp_head', function() {
if (is_page('dashboard')) {
if (class_exists('WOOCS')) {
global $WOOCS;
$WOOCS->reset_currency();
}
}
});

But the (1) problem is not solved when I try to add this code from the DOKAN adjustment - https://currency-switcher.com/dokan/

function so_payment_complete($order_id) {
if (class_exists('WOOCS')) {
global $WOOCS;
$WOOCS->recalculate_order($order_id);
}
}

Can you please provide the substitute of the code of problem(1) for WCMP please?

so that the commission amount in WCMP is converted to the base currency?

If you need access, I can provide you the FTP/admin access.

Sincerely,

Adi

 

Hello Adi

Please  drop me  wp-admin+FTP  access

I'll add it to the queue for adaptation

Hi Pablo,

Thank you for considering my request. I have provided the credentials in the private section. You will find these details:

  1. Wp-admin
  2. FTP access
  3. Test vendor login

Instructions to test as a vendor:

After you have applied the adjustment code, you can test the functionality as follows:

1) Visit the site as a guest (incognito). Go to the test product. (Link is given in private).
2) Purchase a test product assigned to that vendor in any currency except USD. Because it is a base currency.
3) You can purchase as"cash on delivery" method. No real money.

4) The base currency is USD. The best way to check the functionality might be to pay in INR.  Because there is a lot of difference in INR and USD. This way you can check more efficiently.

5) After you place the test order, then login as the administrator and go to WCMP>>Commissions. See that the recent commission has the correct amount and currency associated.

6) The commission rate is 10%. The test product has a price of $224. So even if you pay in a different currency than the base currency, the commission should always be the same - $22.4

7) Then login as a vendor. Go to vendor dashboard>>orders and see the correct currency and the amount is displayed there too.

8) I have already applied this code in function.php which forces the vendor dahboard to load prices base currency only (USD). You may remove the code for testing purposes if needed.

add_filter('wp_head', function() {
if (is_page('dashboard')) {
if (class_exists('WOOCS')) {
global $WOOCS;
$WOOCS->reset_currency();
}
}
});

The commissions recorded should be in the base currency. Please make sure any adjustment does not affect the main order currency. Because the future emails (like order tracking) to the customer should have the same currency and same amount displayed.

Hoping for this compatibility fix soon!!

Sincerely,

Adi

Hello Adi

I added the plugin to the adaptation queue

Thanks, Pablo. Looking forward to it.

Hello

I will write to you as soon as we get the result

Hello

Please  check  your  FTP  access

Please try now.

Hello

Now  FTP is  ok

Thanks for the confirmation. looking forward )

Hello

I will write to you as soon as we get the result

Thanks Pablo.

Regards

Hi Pablo,

Greetings!

It's been days so I hope there are some updates to this compatibility.

I am also briefing the objectives just in case:

  1. The commission in WCMP should always be recorded in base currency no matter which currency the customer paid through.
  2. Lock the vendor dashboard to always load the amounts in base currency.

Thank you and stay safe

Sincerely,

Aditya

 

 

Hello Aditya

The developer started researching a third party plugin yesterday. But unfortunately I didn't have time

He keep doing it on Thursday

Hello,

Thanks for the update. I hope your developer creates the adaptation very soon.

Hi Pablo,

Greetings,

I asked the WCMP author regarding this compatibility. They send me this message below.

" Using the below hook you can change the commission-
do_action('wcmp_vendor_commission_created', $commission_id);
Check this filter -
how we get the value then modify as per your requirement.
wcmp_datatable_order_list_row_data"
Now we need to figure out how to set the correct currency and amount.
Let me know what do you think
Regards,
Adi

Hello Adi

Thank you!  We  checked  it on Thursday

Alright, thanks!

12