דלג על הניווט

זהו פורום התמיכה הטכנית עבור WPML - התוסף הרב-לשוני של WordPress.

כל אחד יכול לקרוא, אבל רק לקוחות של WPML יכולים לכתוב כאן. הצוות של WPML עונה בפורום 6 ימים בשבוע, 22 שעות ביום.

Sun Mon Tue Wed Thu Fri Sat
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

אזור זמן של התומך: Asia/Jerusalem (GMT+03:00)

נושא זה מכיל 0 1, יש ל 2קולות.

עודכן לאחרונה על ידי Itamar לפני 11 חודשים, 3 שבועות.

בסיוע: Itamar.

מחבר פוסטים
יוני 25, 2024 ב-5:06 pm #15823304

royk-9

רקע הנושא:
I am trying to connect a shipping company abroad to our WooCommerce REST API on the site קישור נסתר.

תסמינים:
The shipping company can only see orders and product SKUs in Hebrew. They cannot see orders or product SKUs in English.

שאלות:
How can the shipping company view orders and product SKUs in English through the WooCommerce REST API?

יוני 26, 2024 ב-6:25 am #15829964

Itamar
תומך WPML מאז 02/2016

שפות: אנגלית (English )

אזור זמן: Asia/Jerusalem (GMT+03:00)

הי,

מה שאתה שואל מוסבר במדריך שלנו כאן.

https://wpml.org/documentation/related-projects/woocommerce-multilingual/using-wordpress-rest-api-woocommerce-multilingual/#view-orders
לנוחיותך אני מביא מצרף את הקטע כאן.

By adding the lang parameter to the request, you can return the contents of orders in specified languages. The only condition is that products are translated into the respective language. One application of this is seeing the orders in the site’s default language.

Example: Get only the orders placed in French.

$orders = $woocommerce->get('orders', array( 'per_page' => 25, 'lang' => 'fr' ) );

בכל אופן אני ממליץ שתקרא את כל המדריך שבקישור.

בברכה,
איתמר.

הנושא "[סגור] REST API" סגור לתגובות חדשות.