Jump to content

How to add the 31st date in drop-down


Recommended Posts

Hi, I need to add a date "31" into my Day's dropdown list. I have already changed the Loo=31 in my coding as follows (highlighted in red), but it still doesn't show on the front end.

 

I have already forced compile.

This is on Prestashop 1.4.9.

 

Would appreciate any help please. Thanks!

 

<h2>{l s='Order details' mod='deliveryconfig'}</h2>
<div id="deliveryconfig">
<form action="">
    {foreach from=$configs item=config name=configs}
        <input type="radio" name="id_deliveryconfig" {if $id_deliveryconfig == $config.id_deliveryconfig}CHECKED{/if} id="id_deliveryconfig_{$config.id_deliveryconfig}" value="{$config.id_deliveryconfig}"/>  {$config.description}<br/>
    {/foreach}
    
    <div>
        {l s='Delivery Date' mod='deliveryconfig'}<br/>
        <select id="day" name="day">
            <option value="0">-</option>
            {section name =day loop=31 start=1 step=1}
                <option value="{$smarty.section.day.index}" {if $smarty.section.day.index == $delivery_date[2]}SELECTED{/if}>{$smarty.section.day.index}</option>
            {/section}
        </select>
         
        <select id="month" name="month">
            <option value="0">-</option>
            {section name=month loop=$months start=0}
                <option value="{$smarty.section.month.index + 1}" {if $smarty.section.month.index == $delivery_date[1]}SELECTED{/if}>{$months[month]}</option>
            {/section}
        </select>
         
        <select id="year" name="year">
            <option value="0">-</option>
            {section name=year loop=$years}
                <option value="{$years[year]}" {if $years[year] == $delivery_date[0]}SELECTED{/if}>{$years[year]}</option>
            {/section}
        </select>
    </div>
    
    <div id="div_id_deliveryconfigs">
        {foreach from=$configs item=config name=configsf}
        <div id="div_id_deliveryconfig_{$config.id_deliveryconfig}" {if $id_deliveryconfig == $config.id_deliveryconfig}style="display:block;"{else}style="display:none;"{/if}>
            {foreach from=$config.configs item=option}
            <span><input type="radio" name="id_deliveryconfig_option" id="id_deliveryconfig_option_{$option.id_deliveryconfig_option}_{$config.id_deliveryconfig}" value="{$option.id_deliveryconfig_option}" {if $id_deliveryconfig_option == $option.id_deliveryconfig_option}CHECKED{/if}/>  {$option.timerange}    </span>
            {/foreach}
        </div>
        {/foreach}
    </div>
    <input type="submit" name="saveDeliveryDetails" id="saveDeliveryDetails" value="{l s='Save delivery details' mod='deliveryconfig'}"/>
</form>
</div>

 

post-372665-0-22967100-1379339196_thumb.png

Link to comment
Share on other sites

You can try adding a text as a reference, and see if it shows up, that would let you know if the changes you are making are being applied, or the page is still loading from the cache.

 

If you do not see the text you add, try to manually clear the cache (delete files in /tools/smarty/compile).

 

If you still do not see it, you are likely editing the wrong file.

Link to comment
Share on other sites

×
×
  • Create New...