?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/schtroumpf.fr/modules/an_stickyaddtocart/views/templates/front/



?? Go up: /home/webdevt/www/schtroumpf.fr/modules/an_stickyaddtocart/views/templates

?? Viewing: product-variants.tpl

{**
* 2019 Anvanto
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author Anvanto (anvantoco@gmail.com)
*  @copyright  2019 anvanto.com

*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
{if isset($groups)}
<div class="an_pa_product-variants">
  {foreach from=$groups key=id_attribute_group item=group}
	{if !empty($group.attributes)}
	<div class="clearfix product-variants-item {if $group.group_type == 'select'}product-variants-item-select{/if}">
	  {if $config.display_labels=='1'}
	  <span class="control-label">{$group.name|escape:'htmlall':'UTF-8'}:</span>
	  {/if}
	  {if $group.group_type == 'select'}
		<select
		  class="form-control form-control-select"
		  id="an_group_{$id_attribute_group|intval}"
		  data-product-attribute="{$id_attribute_group|intval}"
		  name="group[{$id_attribute_group|intval}]">
		  {foreach from=$group.attributes key=id_attribute item=group_attribute}
			<option value="{$id_attribute|intval}" title="{$group_attribute.name|escape:'htmlall':'UTF-8'}"{if $group_attribute.selected} selected="selected"{/if}>{$group_attribute.name|escape:'htmlall':'UTF-8'}</option>
		  {/foreach}
		</select>
	  {elseif $group.group_type == 'color'}
		<ul id="group_{$id_attribute_group|intval}" class="an_stickyAddToCart-group">
		  {foreach from=$group.attributes key=id_attribute item=group_attribute}
			<li class="float-xs-left input-container">
			  <label>
				<input class="input-color" type="radio" data-product-attribute="{$id_attribute_group|intval}" name="group[{$id_attribute_group|intval}]" value="{$id_attribute|intval}"{if $group_attribute.selected} checked="checked"{/if}>
				<span
				  {if $group_attribute.html_color_code}class="color" style="background-color: {$group_attribute.html_color_code|escape:'htmlall':'UTF-8'}" {/if}
				  {if $group_attribute.texture}class="color texture" style="background-image: url({$group_attribute.texture|escape:'htmlall':'UTF-8'})" {/if}
				><span class="sr-only">{$group_attribute.name|escape:'htmlall':'UTF-8'}</span></span>
			  </label>
			</li>
		  {/foreach}
		</ul>
	  {elseif $group.group_type == 'radio'}
		<ul id="group_{$id_attribute_group|intval}" class="an_stickyAddToCart-group">
		  {foreach from=$group.attributes key=id_attribute item=group_attribute}
			<li class="input-container float-xs-left">
			  <label>
				<input class="input-radio" type="radio" data-product-attribute="{$id_attribute_group|intval}" name="group[{$id_attribute_group|intval}]" value="{$id_attribute|intval}"{if $group_attribute.selected} checked="checked"{/if}>
				<span class="radio-label">{$group_attribute.name|escape:'htmlall':'UTF-8'}</span>
			  </label>
			</li>
		  {/foreach}
		</ul>
	  {/if}
	</div>
	{/if}
  {/foreach}
</div>
{/if}


??

??