Support Forum

Content of the article

WPBE - WordPress Posts Bulk Editor Professional
You need to log-in to create request (topic) to the support

[WOOC LABS] Bug/Incompability issue with Official Woocommerce Deposits plugin

(new from 01-07-2019)
If you not got email within 24 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here.
The support doesn work on saturdays and sundays, so some Friday requests can be answered on Monday.

Hi, we have a shop working with Woocommerce Deposits and we wanted to use WOOCS to offer payments with one more currency. Everything works fine until Woocommerce Deposits breaksdown the total amount in smaller ones on the cart page, when the currency is changed from USD to MXN, the total in the cart is not being converted at all and the pending amount is miscalculated. We tried other currencies and it happens as well.

Can you help us?

Thanks in advance!

Hello

Ok!  Please  add  FTP + wp-admin access - https://c2n.me/42BAoj4.png

I will add this plugin to the adaptation queue

 

Hi Pablo, sorry for the late response.

The info is already on the private data. Thanks for your support.

Have a great day.

Hello

I added this plugin to the adaptation queue

Hello

Check  your  FTP access - 530 Login authentication failed

Hi Pablo,

Thanks for the message.

I changed the info on the private data. I didn't know ftp users are case sensitive, maybe that was the problem. I also added another ftp account if needed.

 

Thanks!

Hello

Ok! I will check  it

Hello

In file - \wp-content\plugins\woocommerce-deposits\includes\class-wc-deposits-cart-manager.php  - add  code -  https://c2n.me/442ICTn.png

if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$currrent = $WOOCS->current_currency;
if ($currrent != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currrent]['rate'];
$total= $total/ $rate;
}
}
}

AND - https://c2n.me/442IIam.png

if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$currrent = $WOOCS->current_currency;
if ($currrent != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currrent]['rate'];
$total= $total/ $rate;
}
}
}

AND  add  code  in functions.php

add_filter( 'woocommerce_deposits_get_deposit_amount', 'woocommerce_deposits_get_deposit_amount',2,99);

function woocommerce_deposits_get_deposit_amount($deposit,$prod){

if (class_exists('WOOCS')) {
global $WOOCS;
$currrent = $WOOCS->current_currency;
if ($currrent != $WOOCS->default_currency AND $WOOCS->is_multiple_allowed) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currrent]['rate'];
$deposit = $deposit * $rate;
}
}
return $deposit;
}

 

Please  do test!