Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-07:00)

This topic contains 7 replies, has 2 voices.

Last updated by Bobby 1 year, 3 months ago.

Assisted by: Bobby.

Author Posts
March 12, 2024 at 8:24 pm #15401503

petriR

I did run that command in our environment and database but issue remains with not able to add products to cart. I can randomly add some product but then it just wont work anymore.

March 12, 2024 at 11:40 pm #15401735

Bobby
WPML Supporter since 04/2015

Languages: English (English )

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

Hi,

Please pick a variable product and do the following:

During my tests I used Nutrolin® Puppy & Mom - 150ml and 265ml, you can try these steps with the 1000ml

1. Go to products
2. Edit a variable product ex. Nutrolin® Puppy & Mom
3. View the variables
4. switch from Set prices in other currencies manually (265ml $24.90) to Calculate prices in other currencies automatically and update the product (important to update the product)

5. Now try to add the product and it is added. (make sure you test with the variation you did the above switch to)

NOTE: You have to test using the USD currency

Let me know your results, please.

March 13, 2024 at 6:11 am #15402033

petriR

No effect. I tested this with puppy&mom as well the skin&coat. Original was manual price and I changed it to automatic and could not add the skin&coat.

March 14, 2024 at 12:06 am #15406129

Bobby
WPML Supporter since 04/2015

Languages: English (English )

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

Hi,

You are correct that seems to have been a random occurrence and not a true fix, very weird.

I have re-migrated the site over to cloudways and testing now with a minimal environment I am no longer able to reproduce this issue.

Please review the following screencast:
hidden link

Then I invite you to access the staging copy here with your access credentials and confirm with me your results as well.

hidden link

At the moment it looks like this is caused by a third-party plugin that is activated on the site.

March 14, 2024 at 5:46 am #15406307

petriR

Hey,

I did some tests and everything worked fine until I changed the theme back to Flatsome. All plugins were in same "minimal" setup as left by you. So there is some issue with your plugin and Flatsome theme. Do note that the issue affects only your multicurrency plugin. They have updated near the date issue started appearing:

--- 3.18.4 (16.02.24) ---
NEW: WooCommerce 8.6 compatibility.

ENHANCEMENT: Added check for global $product object existence in flatsome_sticky_add_to_cart_template function.
ENHANCEMENT: Improved WPML configuration.

FIXED: Improved handling of non-existent attachment images.
FIXED: Shop category header title color with dark content.
FIXED: Undefined array key "limit" PHP warning in some cases.

UPDATED: Google Fonts list.
UPDATED: Language files.

March 14, 2024 at 6:54 am #15407387

petriR

I take that back. After testing it seems to be working with Flatsome too. This is getting exhausting.

March 14, 2024 at 9:03 pm #15412433

Bobby
WPML Supporter since 04/2015

Languages: English (English )

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

I have escalated this to our second tier team, as I cannot locate a specific plugin causing this.

So far the only guess I can make based on all these steps we have taken is that the add-to-cart behavior works well when there are less plugins enabled (better performance ) but let's wait for our second tier team to take a look and i will update as soon as I have more information.

April 15, 2024 at 4:44 pm #15521413

Bobby
WPML Supporter since 04/2015

Languages: English (English )

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

Hello,

Unforutnately we have not been able to reproduce this behavior after testing on both local and cloudways the behavior is not reproduced.

The topic ‘[Closed] Split: Undefined property errors’ is closed to new replies.