VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: Mister Paul on June 04, 2020, 14:43:55 PM

Title: Product: expiration date?
Post by: Mister Paul on June 04, 2020, 14:43:55 PM
Hi,
some of my products have a small temporality during product creation process we can specify a Availability Date.
But I'd need to specify a Unavailability Date too...

For example these are internships, training that people should no longer be able to buy after they are passed...
Is it possible to specify such  a date where the product will no longer be displayed?

Thanks for your help
Paul
Title: Re: Product: expiration date?
Post by: jenkinhill on June 04, 2020, 15:57:26 PM
I previously used Joomla articles to provide extended product information with the relevant product shown in a module on that page. The page (and module) was removed using the Finish Publishing facility. You can also use the Finish Publishing facility of a module.
Title: Re: Product: expiration date?
Post by: Mister Paul on June 04, 2020, 16:06:24 PM
Thank you for your suggestions.
I use also a module to show category products. But I need to keep it always published. Only "passed" products shouldn't been displayed by the module.

I have just seen this post https://forum.virtuemart.net/index.php?topic=113007.0 (https://forum.virtuemart.net/index.php?topic=113007.0)
It provides a php script to use in a CRON job that unpublish products if the current date is >= product_price_publish_down field from virtuemart_product_prices table. That's fine for me.
;)
But I can't see where I could set the product_price_publish_down date in admin backend... For what I know it's only possiblle directly in database with phpMyAdmin...
Am I wrong?
???
Any help?
Title: Re: Product: expiration date?
Post by: Jörgen on June 05, 2020, 07:11:07 AM
Check details the view for the product and prices in backend. Start and stop date are there.

I would probably go for a custom field, and add a expiration date. Then I would make an override in products.php and check this.  Another idea is to add expiration in days and use available date as start of expiration. Possibillities are probably endless.

Maybe Patrick at Studio42 has a plugin for this.

Jörgen @ Kreativ Fotografi
Title: Re: Product: expiration date?
Post by: Mister Paul on June 05, 2020, 07:30:50 AM
Thank you Jörgen
As it's not translated in French, I didn't see these fields!
:P