VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: sandomatyas on February 26, 2015, 15:26:58 PM

Title: Feature request: publish up/down products on specified time
Post by: sandomatyas on February 26, 2015, 15:26:58 PM
There is a great feature in Joomla, where you can publish up/down an article on specified time.
I would appreciate this function in VirtueMart, too.
I would like to build a shop where is a new product on every day. There is a product_available_date field in the #__virtuemart_products talbe but if I set it to the future the product is published but customers can't buy it. It would be great an another datetime field to the publish down time and a flag which tells what would happen when we are out of this timeframe.
Option1: you can see the product but you can't buy it as now. Option2: You can't see the product at all.
Just an idea :)
Title: Re: Feature request: publish up/down products on specified time
Post by: razor7 on December 30, 2020, 17:15:37 PM
Quote from: sandomatyas on February 26, 2015, 15:26:58 PM
There is a great feature in Joomla, where you can publish up/down an article on specified time.
I would appreciate this function in VirtueMart, too.
I would like to build a shop where is a new product on every day. There is a product_available_date field in the #__virtuemart_products talbe but if I set it to the future the product is published but customers can't buy it. It would be great an another datetime field to the publish down time and a flag which tells what would happen when we are out of this timeframe.
Option1: you can see the product but you can't buy it as now. Option2: You can't see the product at all.
Just an idea :)

Hey! I'm looking for the same feature since 2009, any chance to get this on VM?

Thanks!
Title: Re: Feature request: publish up/down products on specified time
Post by: balai on December 30, 2020, 18:43:33 PM
+1 for that from me
Title: Re: Feature request: publish up/down products on specified time
Post by: AH on December 30, 2020, 19:13:38 PM
Maybe you can use a combination of

Publish up product
and
Pricing dates

Along with additional wording for what to do when price is not available
Title: Re: Feature request: publish up/down products on specified time
Post by: pinochico on December 30, 2020, 22:17:00 PM
1. You can set end date for price
2. You can write custom cli cron and if find product with ended price, you can set product as discontinued
3. You can write custom code for this option for discontinued products:
- see product detail if click on google search link without add to cart and info - product is no more for buing - https://www.kolo-park.cz/obchod/kola-a-elektrokola/elektrokola/horska-elektrokola/celoodpruzena-horska-elektrokola/kellys-theos-f90-29-27-5-720wh-2021-detail
- hidden product from category view
- hidden product from search
- hidden product from virtuemart module
- hidden product from all extensions from Breakdesign (sorry balai :D
- hidden product from extensions catproducts


We did it ourselves and we can do it for you...

Happy New Year for all.
Title: Re: Feature request: publish up/down products on specified time
Post by: Milbo on January 06, 2021, 12:54:23 PM
It is not completly trivial to add it to the core code. First, what happens with the old publish? Should be only overwritten, if there are dates given? or not? I would say it should be overriden. Next problem, it increases the query time. checking for two dates takes more time, than just checking for a bool. Actually the increased query time is almost nothing using the ibm standard time. But that crashes with the nomal timestamp stuff, which we use anywhere.

so maybe a new option is also needed, so that people have to switch it on, in the vm config.

I think a silvermembership is a reasonable price for such a feature. https://extensions.virtuemart.net/support/virtuemart-supporter-membership-silver-detail
Title: Re: Feature request: publish up/down products on specified time
Post by: pinochico on January 06, 2021, 17:09:41 PM
Milbo,

my solution is perfect for 3d party extension or only one cli cron
is not sure change core VM and add new sql.
In VM are perfect all preparation for this feature :)
Howg :)