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.

This topic contains 12 replies, has 4 voices.

Last updated by sarah.n 6 years, 2 months ago.

Assigned support staff: David.

Author Posts
June 12, 2013 at 12:30 pm #135179

Neil

We are working on a custom woocommerce wpml integration. We are using a custom woocommerce add to cart function like this:

$woocommerce->cart->add_to_cart( $product_id, $item['quantity'], '', '', $cart_item_data )

When WPML is enabled the productid and quantity are passed ok, but the $cart_item_data is not

When I disabled wpml this works fine.

Here is the array data for $cart_item_data

array(1) {
["linen_item_meta_data"]=>
array(6) {
["fabric_shape"]=> string(9) "rectangle"
["color"]=> string(4) "noir"
["finish"]=> string(10) "chevron-fr"
["final_length"]=> string(3) "137"
["_price"]=> float(24.78)
["final_width"]=> string(3) "137"
}
}

Any pointers to fix this would be appreciated

June 12, 2013 at 3:43 pm #135289

Harshad

Dear Neil,

Does it works for default language product, or it doesn't work in both default and secondary language product id when wpml is enabled?

June 12, 2013 at 3:47 pm #135295

Neil

It doesn't work on either language.

June 14, 2013 at 10:55 am #135868

Neil

Hi just checking if you were able to recreate this issue, would you like a login to my site to see the problem?

Thanks

June 14, 2013 at 1:29 pm #135907

David
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Dear Neil,

I wasnt able to reproduce it, seeing a bit of the code around that line would surely help. I will write to you an email requesting access. Let me know if you dont receive it.

Best,
David

June 20, 2013 at 10:39 am #137487

Neil

Hi David

Have you had a chance to look at the code?

Thanks

Neil

June 25, 2013 at 1:32 pm #138835

Neil

Just bumping this support thread again, our project is stalled until we can get a fix

thanks

June 26, 2013 at 3:20 pm #139325

Neil

Hi Guys any update?

I understand you are busy but can I get an idea that you are still looking into my issues.

Thanks

July 2, 2013 at 9:53 am #140789

sarah.n
Supporter

Languages: English (English ) German (Deutsch )

Neil,

This is Sarah and I am answering in behalf of David. We have not forgotten about you, in fact I had a look inside your installation and I can see the problem.

Let me touch base with David and get back to you. Thank you for your patience!

July 3, 2013 at 11:32 am #141234

sarah.n
Supporter

Languages: English (English ) German (Deutsch )

Neil,

We need temporary FTP access to the dev install you set-up for us. I'll email you shortly about it. Please stand by.

July 3, 2013 at 2:09 pm #141279

sarah.n
Supporter

Languages: English (English ) German (Deutsch )

Neil,

This is to inform you that I have received your email reply. Thank you.

I have uploaded a new version of WCML with a fix that David added in and have confirmed that it works.

Can you please test once more to confirm it works on your end as well?

July 4, 2013 at 8:27 am #141516

Neil

That has worked beautifully thanks for all your help - just out of curiosity what was the problem?

July 5, 2013 at 8:22 am #141853

sarah.n
Supporter

Languages: English (English ) German (Deutsch )

See: http://plugins.trac.wordpress.org/changeset/716071/woocommerce-multilingual/trunk/woocommerce_wpml.class.php