Jump to content

How to create a date field input form in prestashop ?


JoelWebsites

Recommended Posts

How to create a date field input form in prestashop ?

I want to create a date form field where I could add a start date and an end date.And I want to add a condition that the start date should be always smaller than the enddate.

 

{html_select_date start_year=1970 month_format="%b" field_order="dmy" field_array="sdate" prefix="" day_id="edd" class="form-control" style="width:160px;background-color:#F6F6F6;" month_id="edm" year_id="edy" year_empty="Year" month_empty="Month" day_empty="Day" time=$from|escape name="from"}

 

{html_select_date start_year=1970 month_format="%b" field_order="dmy" field_array="sdate" prefix="" day_id="edd" class="form-control" style="width:160px; background-color:#F6F6F6;" month_id="edm" year_id="edy" year_empty="Year" month_empty="Month" day_empty="Day" time="" name="to"}

 

is not sending the values to the posted page..Is there an easy solution?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...