- الحالة
- مفتوحة
- أُبلغ عنها لـ
- WPML Multilingual & Multicurrency for WooCommerce 5.2.0
- الإضافة/القالب ذو الصلة
- WooCommerce Memberships
- وسوم الموضوع
- Compatibility
نظرة عامة على المشكلة
إذا اشتريت منتجاً بلغات ثانوية، فستلاحظ أنه لا يمثل تعييناً لعضوية. يمكنك ملاحظة ذلك تحديداً في صفحة «شكراً لك» التي تلي الطلب، حيث تغيب تفاصيل العضوية المتوقعة.
حل بديل مؤقت
يُرجى التأكد من أخذ نسخة احتياطية كاملة لموقعك قبل المتابعة.
- افتح الملف …/wp-content/plugins/woocommerce-memberships/src/class-wc-memberships-membership-plan.php.
- ابحث عن السطر 218.
- استبدل:
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; } - بـ:
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; }