WPML

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

إذا اشتريت منتجاً بلغات ثانوية، فستلاحظ أنه لا يمثل تعييناً لعضوية. يمكنك ملاحظة ذلك تحديداً في صفحة «شكراً لك» التي تلي الطلب، حيث تغيب تفاصيل العضوية المتوقعة.

حل بديل مؤقت

تم إصلاح هذه المشكلة في WooCommerce Multilingual 5.7.0. يحل التحديث المشكلة على موقعك، لذا لا تحتاج إلى هذا الحل البديل المؤقت إلا إذا لم تتمكن من التحديث بعد.

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

  • افتح الملف …/wp-content/plugins/woocommerce-memberships/src/class-wc-memberships-membership-plan.php.
  • ابحث عن السطر 218.
  • استبدل:
    PHP
    public function get_product_ids() {
    
    	if ( null === $this->product_ids ) {
    		$this->product_ids = get_post_meta( $this->id, $this->product_ids_meta, true );
    		$this->product_ids = is_array( $this->product_ids ) ? array_unique( array_map( 'absint', $this->product_ids ) ) : [];
    	}
    
    	return $this->product_ids;
    }
  • بـ:
    PHP
    public function get_product_ids() {
    
    	if ( null === $this->product_ids ) {
    		$this->product_ids = get_post_meta( $this->id, $this->product_ids_meta, true );
    		$this->product_ids = apply_filters( 'wc_memberships_rule_object_ids', $this->product_ids );
    		$this->product_ids = is_array( $this->product_ids ) ? array_unique( array_map( 'absint', $this->product_ids ) ) : [];
    	}
    
    	return $this->product_ids;
    }

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

هل ما زلت تواجه هذه المشكلة؟

إذا لم يحل التحديث المشكلة، فاطرح استفسار الدعم وسنبحث في الأمر معك.