Products - flag that some mandatory fields are missing.
Hi, I am using ucommerce and so far I really like it :)
I have an issue, it's not actually an issue but something I would like to see. I have quite a few mandatory fields set up in my product definition and I don't want to show those products until all those fields are inserted.
Is there any way I can know that a product is created but not all mandatory fields are set up, something like umbraco does with the nodes, you can save but not publish, plus those nodes are grayed out.
I know I can write my own query, something like Products.All().Where(p => p.ProductProperties.All(pp => ...)) that will check for those properties and values but I don't like this because those properties may change and I would have to change the code as well.
It would be nice if there was a property on a product or something like that? I suspect I would be getting a lot of support requests from my customers for not showing products on the frontend (if those products were grayed out on the backend it would be easier for them to spot that something is wrong, that they missed entering some of the fields).
It's not a feature that we are currently planning on implementing. It should be possible for you to implement your own implementation though. You could do something where you go through all the product properties, and check if they have a value, and if they do, the product is shown.
Products - flag that some mandatory fields are missing.
Hi, I am using ucommerce and so far I really like it :)
I have an issue, it's not actually an issue but something I would like to see. I have quite a few mandatory fields set up in my product definition and I don't want to show those products until all those fields are inserted.
Is there any way I can know that a product is created but not all mandatory fields are set up, something like umbraco does with the nodes, you can save but not publish, plus those nodes are grayed out.
I know I can write my own query, something like Products.All().Where(p => p.ProductProperties.All(pp => ...)) that will check for those properties and values but I don't like this because those properties may change and I would have to change the code as well.
It would be nice if there was a property on a product or something like that? I suspect I would be getting a lot of support requests from my customers for not showing products on the frontend (if those products were grayed out on the backend it would be easier for them to spot that something is wrong, that they missed entering some of the fields).
Hi Davor,
It's not a feature that we are currently planning on implementing. It should be possible for you to implement your own implementation though. You could do something where you go through all the product properties, and check if they have a value, and if they do, the product is shown.
Something like this
Hope that helps,
Lars
is working on a reply...