ليس لدى هذا المستخدم أي مواضيع مفضلة.
مواضيع المنتدى المفضلة
مواضيع المنتدى التي تم إنشاؤها
| الحالة |
الموضوع
|
داعم | الأصوات | المشاركات | الحداثة |
|---|---|---|---|---|---|
|
Error when viewing WC subscription related orders
1
2
بدأه: janv-75
في: English Support
Problem: When trying to view related orders for a WC subscription, a fatal error occurs due to an issue with the WPML Multilingual CMS plugin. Solution: As a temporary workaround, modify the wcs_get_edit_post_link function in the wcs-helper-functions.php file located in the wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/ directory. Change the function as follows: From:
function wcs_get_edit_post_link( $post_id ) {
$object = wc_get_order( $post_id ); // works for both WC Order and WC Subscription objects.
if ( ! $object || ! in_array( $object->get_type(), array( 'shop_order', 'shop_subscription' ), true ) ) {
return;
}
return apply_filters( 'get_edit_post_link', $object->get_edit_order_url(), $post_id, '' );
}
To:
function wcs_get_edit_post_link( $post_id ) {
if ($post_id instanceof('WC_Subscription')){
$post_id = $post_id->id;
}
$object = wc_get_order( $post_id ); // works for both WC Order and WC Subscription objects.
if ( ! $object || ! in_array( $object->get_type(), array( 'shop_order', 'shop_subscription' ), true ) ) {
return;
}
return apply_filters( 'get_edit_post_link', $object->get_edit_order_url(), $post_id, '' );
}
The permanent fix for this issue is included in the newer versions of WPML and WooCommerce Subscriptions. So please update to the latest versions of the plugins after a full site backup. If this solution does not resolve your issue or seems irrelevant due to updates or different circumstances, we recommend opening a new support ticket. Also, check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at WPML support forum. |
|
3 | 21 | قبل 1 أسبوع | |
|
Issue with subscription renewal order
1
2
بدأه: janv-75 في: English Support |
|
2 | 16 | قبل سنتين، 3 أشهر | |
|
WPML chat support ticket by janv-75 – 1681914407
بدأه: janv-75 في: Chat Support |
|
1 | 2 |
قبل سنتين، 5 أشهر
|
|
|
WPML subscription switch between translations
1
2
بدأه: janv-75 في: English Support |
|
2 | 19 | قبل سنتين، 6 أشهر | |
|
Issue with Woocommerce Subscriptions
بدأه: janv-75 في: Chat Support |
|
1 | 2 |
قبل سنتين، 7 أشهر
|
|
|
WC Emails slugs are not translated correctly
1
2
بدأه: janv-75 في: English Support |
|
3 | 30 | قبل سنتين، 11 شهر | |
|
Translate WooCommerce Subscriptions string
بدأه: janv-75 في: Chat Support |
|
1 | 2 |
قبل 3 سنوات
|