Try the Demo

Magento Forum

   
Date format problem in promo_catalog
 
David V
Member
 
Avatar
Total Posts:  32
Joined:  2008-03-03
 

Hello,

I’m french so sorry for my english.

When i edit the date in Promo > Catalog Rules, i have a probleme in the date format if i write dd/mm/yy (’ve got a message with invalid format), so i use the calendar but every next day, the promo is disable.

I compare format date between “Promo > Catalog Rules” and “Catalog > Edit Product > Price” and i note a difference in the code.

Edit Catalog Rules

<tr>
        <
td class="label"><label for="rule_from_date">From Date</label></td>

    <
td class="value"><input name="from_date" id="rule_from_date" value="01/10/08" title="From Date" type="text" class=" input-text" style="width:100px; "/> <img src="http://www.stickers-et-decoration.fr/skin/adminhtml/default/default/images/grid-cal.gif" alt="" class="v-middle" id="rule_from_date_trig" title="Sélectionner une date" /><script type="text/javascript">
            
Calendar.setup({
                inputField 
"rule_from_date",
                
lang "fr",
                
ifFormat "%m/%d/%y",
button "rule_from_date_trig",
                
align "Bl",
                
singleClick true
            }
);
        
</script></td>
    <
td><small>&nbsp;</small></td>
    </
tr>
<
tr>

Edit Price Product:

<tr class="hidden">
    <
td class="label"><label for="special_from_date">Special Price From Date</label></td>
    <
td class="value"><input name="product[special_from_date]" id="special_from_date" value="24/10/08" class=" input-text" type="text" style="width:100px; "/> <img src="http://www.stickers-et-decoration.fr/skin/adminhtml/default/default/images/grid-cal.gif" alt="" class="v-middle" id="special_from_date_trig" title="Sélectionner une date" /><script type="text/javascript">
            
Calendar.setup({
                inputField 
"special_from_date",
                
lang "fr",
                
ifFormat "%d/%m/%y",
button "special_from_date_trig",
                
align "Bl",
                
singleClick true
            }
);
        
</script></td>

    <
td class="scope-label"></td>
        <
td><small>&nbsp;</small></td>
</
tr>

If someone can help me, i want to edit the format date to promo_catalog/edit but i dont find the file with the code. It’s important my site is in production and i must find an issue to this problem…

Thanks

 Signature 

Site Web: Stickers et Décoration - Stickers Discount

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top