[TYPO3-commerce] define attribute as date/time field?

Christian Welzel gawain at camlann.de
Wed Jan 30 17:00:08 CET 2008


Christian Welzel schrieb:

> is there a way to define an product attribute to be a date or time
> field?

After fiddling around some hours i got the backend of commerce to
display date and time edit fields to the user. That works fine and
the values are stored as integers into the field attributesedit of
tx_commerce_articles:

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3FlexForms>
     <data>
         <sheet index="sDEF">
             <language index="lDEF">
                 <field index="attribute_1">
                     <value index="vDEF">1202943600</value>
                 </field>
                 <field index="attribute_2">
                     <value index="vDEF">54900</value>
                 </field>
             </language>
         </sheet>
     </data>
</T3FlexForms>

But $matrix of formatAttributeValue() does not get the values...
What i get in there is this:

Array
(
     [1] => Array
         (
             [title] => Datum
             [unit] => dd-mm-yyyy
             [values] => Array
                 (
                     [0] =>
                 )

             [valueuidlist] => Array
                 (
                 )

             [valueformat] =>
             [Internal_title] =>
             [icon] =>
         )

     [2] => Array
         (
             [title] => Anfangszeit
             [unit] => hh:mm
             [values] => Array
                 (
                     [0] =>
                 )

             [valueuidlist] => Array
                 (
                 )

             [valueformat] =>
             [Internal_title] =>
             [icon] =>
         )

)

The values are empty...
So what have i to do to get the values?

-- 
MfG, Christian Welzel

   GPG-Key:     http://www.camlann.de/key.asc
   Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15


More information about the TYPO3-project-commerce mailing list