WPML
الحالة
محلولة بواسطة المطور
الإضافة/القالب ذو الصلة
Flux Checkout
وسوم الموضوع
Compatibility

نظرة عامة على المشكلة

عند استخدام إضافة Flux Checkout for WooCommerce من Iconic، لا تتم تصفية الرسائل المعروضة في صفحة إتمام الشراء بشكل صحيح حسب اللغة. تظهر جميع الرسائل من جميع اللغات بغض النظر عن اللغة المحددة أثناء إتمام الشراء.

حل بديل مؤقت

يُرجى التأكد من أخذ نسخة احتياطية كاملة لموقعك قبل المتابعة.


  • افتح الملف …/wp-content/plugins/flux-checkout/inc/class-checkout-elements.php.

  • ابحث عن السطر 418.

  • استبدل:
    		$args = array(
    			'post_type'      => self::$post_type_key,
    			'posts_per_page' => 100,
    			'post_status'    => 'publish',
    		);
    
    		$checkout_elements_posts = get_posts( $args );

  • بـ:
    // WPML Workaround for compsupp-7760
    		$args = array(
    			'post_type'      => self::$post_type_key,
    			'posts_per_page' => 100,
    			'post_status'    => 'publish',
    			'suppress_filters'    => false,
    		);
    
    		$checkout_elements_posts = get_posts( $args );

جميع المشاكل المعروفة →