Jump to content

How to change <Input radio into <input date ?


Recommended Posts

Hello,

 

I wanted to get fast to datepicker in product detail and since I do not plan to use radio in Attributes I decided to give radio up and turn it into input date.

I configured only one option (value) for radio button in Prestashop back end.

 

 

In "product.tpl" I have this code:

 

{elseif ($group.group_type == 'radio')}
 
---------- code start-----
<ul>
{foreach from=$group.attributes key=id_attribute item=group_attribute}
<li>
<input type="radio" class="attribute_radio" name="{$groupName}" value="{$id_attribute}" {if ($group.default == $id_attribute)} checked="checked"{/if} onclick="findCombination();getProductAttribute();" />
<span>{$group_attribute|escape:'htmlall':'UTF-8'}</span>
</li>
{/foreach}
</ul>
{/if}
 
---------- code end-----
 
When I change "<input type="radio" into "<input type="date" I have a problem - Add to cart button disappears and the value added to the cart is the value I preset in back and of Prestashop.
 
Should I change anything else here?
 
Appreciate any advice ..
 
 
 
Edited by jbmd (see edit history)
Link to comment
Share on other sites

  • 10 months later...
×
×
  • Create New...