VirtueMart Forum

VirtueMart General => Commercial Jobs => Topic started by: dsrpmedia on January 29, 2011, 19:51:25 PM

Title: unpublish product on expiry
Post by: dsrpmedia on January 29, 2011, 19:51:25 PM
Hi

I need to be able to set an expiry date, and have the product automatically unpublish after expiry.

I have seen in the forums this exact feature requested since 2007, and no solutions.

It cannot be that hard??!!

If anyone can do it - how much?
Title: Re: unpublish product on expiry
Post by: lowmips on January 29, 2011, 21:21:51 PM
This actually would not be a difficult project...create a new field in the project table for the expiration date, and have a new datepicker on the "Product Status" page.

Then create a table which indicates the last time the expirations were checked.  Then either create a cron job script to run daily, or insert code into the main virtuemart parser. This script would check the expiration date for every product, unpublishing as necessary. Once done, write todays date into the expiration check table.  If this script has already run today (as indicated in the new table), skip the checks altogether.

This outline should help any potential scripter who wants to pick this up.  Or, if/when I get time I could do it for you (it will be a while though..I'm swamped).

Reggie
Title: Re: unpublish product on expiry
Post by: berges on March 21, 2011, 10:35:10 AM
hello do you have any news about it ?
Title: Re: unpublish product on expiry
Post by: dsrpmedia on March 21, 2011, 16:56:04 PM
no luck at all
Title: Re: unpublish product on expiry
Post by: lowmips on March 22, 2011, 16:09:08 PM
Please email me, I'll put you in my work queue.  I'm unsure of when I'll be able to get to it, but I'll definitely do it.

Reggie
Title: Re: unpublish product on expiry
Post by: berges on March 22, 2011, 17:16:19 PM
on paid dev or just for community ?
Title: Re: unpublish product on expiry
Post by: lowmips on March 22, 2011, 18:08:11 PM
Paid work.  This is the commercial jobs section, after all!  ;)

-Reggie
Title: Re: unpublish product on expiry
Post by: berges on March 22, 2011, 19:30:53 PM
What is your price ?
Title: Re: unpublish product on expiry
Post by: berges on April 04, 2011, 15:22:52 PM
no reponse ?