Jump to content

popover attribute

Recommended Posts

Hello I put a popover on product attributes


i file custom.js

 /* funzione poperover per attributi**/
  html: true,
  trigger: 'hover',
  placement: 'bottom',
  content: function(){return '<img src="'+$(this).data('img') + '" />';}

e in file product-variants.tpl



change <input class="input-color"

<input rel="popover" data-title="{$colors.$id_attribute.name|escape:'html':'UTF-8'}" data-img="{$group_attribute.texture}" class="input-color" type="radio"  data-product-attribute="{$id_attribute_group}" name="group[{$id_attribute_group}]" value="{$id_attribute}" title="{$colors.$id_attribute.name|escape:'html':'UTF-8'}"  {if $group_attribute.selected} checked="checked"{/if}>

but I have two small problems



1 hover finishes only at the top of the attribute


2 If you click on the attribute the popover crashes and no longer appears on the other



​the page is http://www.partecipazioniebomboniereonline.it/home/8-8-prova1.html





Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More