Coupons sometimes show and sometimes not
-
BodavParticipant1 year, 11 months ago #27911
Hi, coupons in wp admin sometimes do show and sometimes the results is empty with zero results. This is the query I get when it does not work.
I tried resync all data
WPSOLR Log query =>
Url: “/wp-admin/edit.php?post_type=shop_coupon&all_posts=1”
Index: “freshuk_index1”
Nb results shown: 100
Total nb results: 10000
Speed: 437 ms
Query: {
“from”: 0,
“size”: 100,
“sort”: [
{
“total_sales_f”: {
“order”: “desc”
}
}
],
“_source”: [
“id”,
“PID”,
“type”,
“meta_type_s”,
“title”,
“numcomments”,
“comments”,
“displaydate”,
“displaymodified”,
“*categories_str”,
“author”,
“*post_thumbnail_href_str”,
“*post_href_str”,
“snippet_s”
],Last seen: 2021-09-29 20:27:41 Asia/Jerusalem
Total events: 1
thats the query.
why does it sort by sales? thats the sort i want on the front end. maybe because of that?
it returns 0 resultsBodavParticipant1 year, 11 months ago #27915So how can I show the products on front end in different default sort than new to old? Because now on shop page on top I have new products that never sold.. And it takes the most important space on the website.. People add to cart products on top, not on bottom
You must be logged in to reply to this topic.