Osclass Support Forums

Osclass plugin support => Backoffice Manager Plugin => Topic started by: jcarrolo01 on February 25, 2019, 10:31:03 AM

Title: Expired listings are not deleted
Post by: jcarrolo01 on February 25, 2019, 10:31:03 AM
Dear all 

In republish tab i set the expiring listings should be deleted after 7 days ... but i realize i have expired linting at 1 & 2 month and that listings never be deleted, they still theree...

And yes, i have daily, weekly ang hourly cron jobs set

Best regards
Joao

Title: Re: Expired listings are not deleted
Post by: MB Themes on February 25, 2019, 01:13:20 PM
@jcarrolo01
It is removing only listings that should be removed "today"

oc-content/plugins/backoffice_manager/index.php

Try to change:
Code: [Select]
if($delete_date == $today) {
Into:
Code: [Select]
if($delete_date <= $today) {
This will remove listings those delete date is today or sooner, but make sure to backup your db.
Title: Re: Expired listings are not deleted
Post by: jcarrolo01 on February 25, 2019, 08:10:57 PM
Thanks allot for you reply....



Best Regards
João Carrolo