Jump to content

Edit History

Yulia Vitun

Yulia Vitun

Prestashop 1.7.6.5

to show color titel when hovering with mouse over a color combination  - add this code: title="{$group_attribute.name}"

to <label> in line 45 in file /themes/classic/templates/catalog/_partials/product-variants.tpl 

so it would look like this:

              <label>
                <input class="input-color" title="{$group_attribute.name}" type="radio" data-product-attribute="{$id_attribute_group}" name="group[{$id_attribute_group}]" value="{$id_attribute}"{if $group_attribute.selected} checked="checked"{/if}>
                <span
                  {if $group_attribute.html_color_code && !$group_attribute.texture}class="color" style="background-color: {$group_attribute.html_color_code}" {/if}
                  {if $group_attribute.texture}class="color texture" style="background-image: url({$group_attribute.texture})" {/if}
                ><span class="sr-only">{$group_attribute.name}</span></span>
              </label>

 

Yulia Vitun

Yulia Vitun

Prestashop 1.7.6.5

to show color titel when hovering with mouse over a color combination  - add this code: title="{$group_attribute.name}"

to line 45 in file /themes/classic/templates/catalog/_partials/product-variants.tpl 

so it would look like this:

<label>
                <input class="input-color" title="{$group_attribute.name}" type="radio" data-product-attribute="{$id_attribute_group}" name="group[{$id_attribute_group}]" value="{$id_attribute}"{if $group_attribute.selected} checked="checked"{/if}>
                <span
                  {if $group_attribute.html_color_code && !$group_attribute.texture}class="color" style="background-color: {$group_attribute.html_color_code}" {/if}
                  {if $group_attribute.texture}class="color texture" style="background-image: url({$group_attribute.texture})" {/if}
                ><span class="sr-only">{$group_attribute.name}</span></span>
              </label>

 

×
×
  • Create New...