This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by tsungC 1 week, 4 days ago.

Assigned support staff: Bobby.

Author Posts
September 26, 2019 at 5:39 pm #4649365

tsungC

I am trying to:
Deploy WC Deposit features in multiple languages.

Link to a page where the issue can be seen:
hidden link

I expected to see:
1. WC Deposit features can be applied to other currencies besides just USD.
2. WP Cron job runs with no issues.

Instead, I got:
1. WC Deposit features can be applied to other currencies besides just USD runs just fine.
2. WP Cron job stops running.

September 27, 2019 at 12:49 am #4650723

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

If possible I would like to take a closer look at the backend to further test this issue,

**Before we proceed I recommend to please take FULL BACKUP of your database and your website.**
I often use the Duplicator plugin for this purpose See: http://wordpress.org/plugins/duplicator/

I would like to request temporary access (wp-admin and FTP) to your site to fix the issue.
(preferably to a test site where the problem has been replicated if possible)

You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you will enter is private which means only you and I can see and have access to it.

NOTE: if access to the live site is not possible and staging site does not exist please provide me with a duplicator package created with the duplicator plugin

Thank you,
Bobby

October 2, 2019 at 1:45 am #4675819

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for the access details!

I went to wp-content/plugins/woocommerce-deposits/includes/class-wc-deposits-cart-manager.php

and replaced lines 103-107 showing below :

	public function has_deposit() {
		foreach ( WC()->cart->get_cart() as $cart_item ) {
			if ( ! empty( $cart_item['is_deposit'] ) ) {
				return true;
			}
		}
		return false;
	}

with:

	public function has_deposit() {
		if (WC()->cart){
			foreach ( WC()->cart->get_cart() as $cart_item ) {
				if ( ! empty( $cart_item['is_deposit'] ) ) {
					return true;
			}
		}
	}
		return false;
}

I have now tested the front end and it seems to be working well, please let me know if this has resolved the issue you were experiencing as when I visit site.com/wp-cron.php I am not able to see much information.

October 3, 2019 at 9:23 am #4686267

tsungC

My issue is resolved now. Thank you!