Variants with post date and available for purchase #2314
Replies: 6 comments
-
We added a new checkbox to products in beta.5 which allows you to uncheck 'available for purchase', it isn't date based but would that be enough to satisfy the need to publish a product live without it being purchasable yet? |
Beta Was this translation helpful? Give feedback.
-
Sounds interesting. I‘ll check that! Thanks :) |
Beta Was this translation helpful? Give feedback.
-
Hm ah I see. But we need it more on variants level as on product level. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback. |
Beta Was this translation helpful? Give feedback.
-
I bet this could be done with a custom field… it may require listening to the {# In a Product's template... #}
{% set timeSensitiveVariants = craft.variants({
productId: product.id,
myReadyDateField: ">= #{now}"
}).all %} I don't think this is a bad idea for core, but wanted to offer a means by which you could implement, today! |
Beta Was this translation helpful? Give feedback.
-
We added the following event to allow you to check the current user permissions or order to know if the variant should be available: Leaving this ticket open as we want to add the |
Beta Was this translation helpful? Give feedback.
-
Maybe more a Feature for the upcomming commerce Version but here is my Idea.
Is it possible to have Variants with a
postDate
?We import our products automatically but some of the variants have a date in the future (new Stuff). Any chance that craft can handle that? Disable until the date is reached?
Thanks! :)
Beta Was this translation helpful? Give feedback.
All reactions