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?
Itamar
Supporter
שפות:
אנגלית (English )
עברית (עברית )
אזור זמן:
Asia/Jerusalem (GMT+02: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' ) );
בכל אופן אני ממליץ שתקרא את כל המדריך שבקישור.
בברכה,
איתמר.