Classifieds listings staying live after the sell date

Cavablar: 4 Baxışlar: 73
Qiymətləndirənlər
İştirakçılar
Mövzunu Açan #1
I run a small buy and sell board with the Classifieds add-on. A few sellers set a sell date that passed last week, but their listings still show up in the category and in search. I expected them to move to expired automatically. Is there a cron job or setting that handles this, or do I have to close them by hand? Thanks for any pointers.
0
#2
Hi defynot, thanks for the report.

Classifieds has a scheduled task for this: Classifieds: expiry and reminders. It runs four times an hour (at :02, :17, :32 and :47), moves listings whose time is up to expired, sends the expiry reminders and ends featured periods. So you should not need to close them by hand.

If listings past their date are still live on your board, please check two things first:
  • Admin → Cron (scheduled tasks): the task is enabled and shows recent runs.
  • Your board's cron actually runs: either the server cron job that calls public/cron.php every minute, or the page-load trigger (cron trigger mode).


We are also changing one thing on our side: a listing whose date has passed should disappear from the category, search and widgets right away, even before the task gets to it. That fix is going into the next Classifieds update for RaxBoard 2.0.0, and I will post here when it is out.
0
#3
Update: Classifieds 1.1.1 is out on the marketplace (for RaxBoard 2.0.0), and it covers your case.

What we found: Classifieds has no "sell date" of its own. A listing runs for the duration the seller picks, and a "sell date" on a board is usually a custom Date field the admin added, which until now had no effect on expiry. The scheduled task also only ran when the board's cron runs, so overdue listings could stay visible.

What 1.1.1 changes:
  • Any listing whose time is up disappears from categories, search, widgets, the sitemap and the featured carousel right away, even before the task runs. The seller and moderators still see it.
  • A custom Date field can now be marked This date ends the listing (in the field's settings). The listing then ends at the end of that day, in your board's time zone. A past date is refused, and an ended listing cannot be renewed until the date is changed.
  • The task then marks those listings expired and sends the seller the usual expiry notice.
  • The Classifieds health panel shows "Listings past their date" with a link to Admin → Cron if your board's cron is not running.


After updating, open your "sell date" field in the Classifieds field settings and tick This date ends the listing. Existing listings pick up the date the next time they are saved.
0
Mövzunu Açan #4
Checked both things you asked about: the expiry task is enabled and shows recent runs, so cron itself looks fine on my side. I updated to 1.1.1 and ticked the option on my sell date field. One listing that passed its date is still showing up in search though. Does that only clear on the next task run, or is there something to rebuild after the update?
0
#5
Hi defynot, thanks for checking both, that rules out the cron.

It would not clear on the next task run, and in 1.1.1 there is nothing you can rebuild. What we found: the end date from a field marked This date ends the listing is only taken over when a listing is saved. Listings saved before you ticked the option still have no end date of their own, so they stay in the category and in search, and the expiry task does not see them as due. Saving such a listing again does not help once its date has passed, because the field refuses a past date. My note in #3 that existing listings pick up the date the next time they are saved did not cover this case, sorry about that.

What you can do now:
  • For a listing whose date has passed: open it and choose Pause (moderators see this on members' listings too). A paused listing leaves the category and search at once.
  • Listings whose date is still ahead pick it up when they are edited and saved once.


What Classifieds 1.1.3 changes (it needs RaxBoard 2.0.0, which comes out shortly):
  • Ticking or unticking the option, switching the field on or off, or adding it to or removing it from a category now updates every listing that holds a date in that field, in the background within a few minutes.
  • The update itself works out the end date of all existing listings once. Listings whose date has passed leave the category pages, search and widgets, and the expiry task then marks them expired and sends the seller the usual notice. Paused listings past their date are expired the same way.
  • Admin → Classifieds → Tools → Rebuild search text now refreshes the end dates as well, if you ever want to run it by hand.


After updating to 1.1.3 there is nothing else to do.
Merhaba defynot, ikisini de kontrol ettiğiniz için teşekkürler; böylece cron'un sebep olmadığı anlaşılıyor.

Sorun görevin bir sonraki çalışmasında kendiliğinden düzelmezdi; 1.1.1'de yeniden oluşturabileceğiniz bir şey de yok. Bulduğumuz şu: Bu tarih ilanı sona erdirir olarak işaretlenmiş bir alandaki bitiş tarihi, yalnızca ilan kaydedildiğinde ilana aktarılıyor. Seçeneği işaretlemenizden önce kaydedilmiş ilanların hâlâ kendi bitiş tarihi yok; bu yüzden kategoride ve aramada kalıyorlar ve süre bitimi görevi onları süresi gelmiş olarak görmüyor. Böyle bir ilanı tarihi geçtikten sonra yeniden kaydetmek de işe yaramıyor, çünkü alan geçmiş bir tarihi kabul etmiyor. #3'teki, mevcut ilanların tarihi bir sonraki kayıtta alacağı yönündeki notum bu durumu kapsamıyordu; bunun için özür dilerim.

Şimdi yapabilecekleriniz:
  • Tarihi geçmiş bir ilan için: ilanı açıp Duraklat'ı seçin (moderatörler bunu üyelerin ilanlarında da görür). Duraklatılan ilan kategoriden ve aramadan hemen çıkar.
  • Tarihi henüz gelmemiş ilanlar, bir kez düzenlenip kaydedildiklerinde tarihi alır.


Classifieds 1.1.3 ile neler değişiyor (RaxBoard 2.0.0 gerektirir; 2.0.0 kısa süre içinde çıkıyor):
  • Seçeneği işaretlemek ya da işaretini kaldırmak, alanı açmak ya da kapatmak veya alanı bir kategoriye eklemek ya da kategoriden çıkarmak artık o alanda tarih bulunan her ilanı birkaç dakika içinde arka planda günceller.
  • Güncellemenin kendisi de mevcut tüm ilanların bitiş tarihini bir kez hesaplar. Tarihi geçmiş ilanlar kategori sayfalarından, aramadan ve widget'lardan çıkar; ardından süre bitimi görevi onları Süresi doldu olarak işaretler ve satıcıya olağan bildirimi gönderir. Tarihi geçmiş duraklatılmış ilanların süresi de aynı şekilde sona erdirilir.
  • Yönetim → İlanlar → Araçlar → Arama metnini yeniden oluştur artık bitiş tarihlerini de yeniler; bir gün elle çalıştırmak isterseniz kullanabilirsiniz.


1.1.3'e güncelledikten sonra yapmanız gereken başka bir şey yok.

Cavab vermək üçün daxil olmalısınız.

0 sitat seçildi