rishs
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Not able to see all previous orders in admin pageI attached link about whats the issue. I’m not able to see previous orders i can only see processing orders in admin panel. But when i click on filter option without making any changes then it shows all 1,142 orders. But i want to see all 1,142 orders when i click Woo commerce > Orders. Before i was able to see but i don’t understand why its not working.
https://www.awesomescreenshot.com/video/46581956?key=7a1f51987f9d683f0fdbd215fb11850a
Forum: Plugins
In reply to: [WooCommerce] Not able to see all previous orders in admin pageThere are so man completed orders like almost 1100 orders but i cant see them at the top and i cant see them until i hit filter option. (https://ibb.co/nXX8bp9) This image is for to show how many are there in total its shows this when i click on filter option. And only there are 2 trash orders and 10 failed orders 23 processing and remaining all are completed orders.
Link for System Status Report
https://pastebin.com/XBshRG3BThank you so much its working now
i tried with both Storefront & Twenty Twenty-Five themes in staging site it still doesn’t work. https://www.awesomescreenshot.com/video/45759638?key=2fcbac8103b23991187c20ca65265240
https://www.awesomescreenshot.com/video/45759684?key=3263d8c08d570a54ecaa5da24d7b7c51
Please check the attached links to get and idea how it shows. “Grapefruit” is not even first word its somewhere down. Can you please help me fix this/**
- Fix WooCommerce admin product search — make it search by exact title and SKU.
*/
add_filter(‘posts_search’, function ($search, $query) {
global $wpdb; // Only modify search in WooCommerce products admin list
if (!is_admin() || !$query->is_main_query()) {
return $search;
} if (!isset($_GET[‘post_type’]) || $_GET[‘post_type’] !== ‘product’) {
return $search;
} $term = isset($_GET[‘s’]) ? trim($_GET[‘s’]) : ”;
if ($term === ”) {
return $search;
} $like_term = ‘%’ . $wpdb->esc_like($term) . ‘%’;
$exact_term = $wpdb->esc_like($term); // Build SQL to match product title OR exact SKU
$search = $wpdb->prepare(“
AND (
{$wpdb->posts}.post_title LIKE %s
OR {$wpdb->posts}.ID IN (
SELECT post_id
FROM {$wpdb->postmeta}
WHERE (meta_key = ‘_sku’ AND meta_value LIKE %s)
)
)
“, $like_term, $exact_term); return $search;
}, 10, 2);
But it working when i kept this PHP code in the code snippets.https://ibb.co/PvSXzpgm
i did backup but https://ww.wp.xz.cn/plugins/wp-staging/ this plugin i can only backup the website and its showing some caution https://ibb.co/gFJzdkWv. Is there any other alternative way to fix this instead of making staging site ?
- This reply was modified 7 months, 2 weeks ago by rishs.
I will try to do it and get back to you
- This reply was modified 7 months, 2 weeks ago by rishs.
I deactivated the plugin and tried it’s still same issue i can’t find the product at first when i search “grapefruit” https://ibb.co/cScMnChh Here is the image.
I’m searching here in woo commerce > products > product search and i think this problem is there from starting we recently added new products so its hard to find after searching product name.( https://ibb.co/YBS4D6Ls) Image Link
https://pastebin.com/r5i3BU7h - Fix WooCommerce admin product search — make it search by exact title and SKU.