It is possible (or it could be possible in the future) to use a Date Field as a combination attribute when bulk creating products?

(At the moment I'm considering to achieve this by using a List (text) field with 365 values (days). But obviusly is not very wise, as it is not a Date)

Comments

sven.lauer’s picture

Commerce BPC does not allow this at present, but it is definitely possible (there is an API that allows anyone to implement this).

I guess UI-wise, we would simply display a multi-value date field. I've been thinking that I might write an extension module that allows arbitrary multi-value fields to be used as combination fields. If I get to that, this could be used for date fields.

However, right now, you will have to find a workaround (if you don't want to write a custom module). A list field with 365 fields sounds painful, though ...

elianhi’s picture

Aha. I see.
Then I'll have to take the painful way, as I'm not a developer. Because unfortunately I cannot even use Commerce Feeds to import my products as Feed does not have an Entity Reference Mapper which I need for my custom products.

Anyway, your idea of displaying multi-value fields sounds very promising :)