WooCommerce integration is a Free feature. It handles core product translation, product meta sync, cart language switching, checkout string localization, and order language tracking. PRO adds AI-assisted and bulk WooCommerce workflows on top of this Free foundation. Advanced WooCommerce extensions, custom checkout plugins, subscription/booking flows, payment-provider emails, shipping calculators, and heavily customized transactional email templates need site-specific QA.
Product Filtering
Products are automatically filtered by language on shop, category, and tag archive pages.
// For custom product queries, add the language filter:
$args = [
'post_type' => 'product',
'posts_per_page' => 12,
'meta_query' => [
'relation' => 'OR',
[
'key' => '_langforge_language',
'value' => langforge_get_current_language(),
],
[
'key' => '_langforge_language',
'compare' => 'NOT EXISTS',
],
],
];
$products = new WP_Query($args);Product Data Sync
When a translation is created for a product, WooCommerce product data (prices, SKU, stock, attributes) is copied. When the product in the default language is saved, these meta fields are copied to its translations: _regular_price, _sale_price, _price, _sku, _stock, _stock_status, and _manage_stock (a variable product leaves out the three price fields). Saving a translation does not run this copy. The copy runs when WooCommerce has written the product (woocommerce_update_product and woocommerce_new_product) and on save_post_product. A change of stock on any product of the group (an order, a refund, an edit) is copied to the others by the WooCommerce stock hooks. The list is fixed: there is no filter to change it.
Each translation of a variable product has variations of its own. A variation made for a translation carries the meta key _langforge_variation_source, the ID of the variation it was made from. The variations of a translation follow those of the product in the default language, except the description of a variation, which is the translation’s own, and the values of a custom attribute (one that is not a taxonomy), which follow the words that the translation lists for them (the two products are matched by the name of the attribute, so the translation keeps the name the original gives it; a list with as many values as the original’s, in the same order); a value that it does not translate stays the original’s.
Cart Language Switching
When a customer switches languages, cart product IDs are automatically mapped to the translation in the new language.
WooCommerce Page Translation
WooCommerce system pages (shop, cart, checkout, my-account) are automatically resolved to their translated versions.
Order Language
The customer’s language at the time of purchase is saved with the order:
// Read the language of an order
$order = wc_get_order($order_id);
if ($order) {
$order_lang = $order->get_meta('_langforge_order_language', true);
// Returns the language code of the order, for example 'es'
}—