Jump to content

View attribute like boxes(use color_picker method)


cara_ionutz

Recommended Posts

Hello,

 

I worked some hours to be able to view attribute in boxes(like color picker), i've modified the product.tpl, product.js and its work .

As you see in attach near size(first) attribute also apear color name, i know why appear(because i use group sellection), but what can i do to appear just the sizes withot color names(its ulgy to appear twice, because also appear color picker).

I take a look over ProductController and i thing i should add some codes there but i dont know what.

 

 

this is the code that i have added in product.tpl

 

 

{if isset($groups)}

<!-- colors -->

<div id="size_picker">

<p>{l s='Alege o masura:'}</p>

<div class="clear"></div>

<ul id="size_to_pick_class" class="size_to_pick_list">

{foreach from=$groups key=id_attribute_group item=group}

 

{foreach from=$group.attributes key=id_attribute item=group_attribute}

<li><a id="size_{$id_attribute|intval}" class="size_pick" onclick="updateMasuraSelect({$id_attribute|intval});$('#wrapResetImages').show('slow');" style="opacity: 1;" title="{$group_attribute|escape:'htmlall':'UTF-8'}">{$group_attribute|escape:'htmlall':'UTF-8'} </a></li>

{/foreach}

 

 

 

{/foreach}

</ul>

<div class="clear"></div>

</div>

{/if}

 

Thank you

post-254793-0-29209100-1338143573_thumb.jpg

  • Like 1
Link to comment
Share on other sites

Hello,

 

I worked some hours to be able to view attribute in boxes(like color picker), i've modified the product.tpl, product.js and its work .

As you see in attach near size(first) attribute also apear color name, i know why appear(because i use group sellection), but what can i do to appear just the sizes withot color names(its ulgy to appear twice, because also appear color picker).

I take a look over ProductController and i thing i should add some codes there but i dont know what.

 

 

this is the code that i have added in product.tpl

 

 

{if isset($groups)}

<!-- colors -->

<div id="size_picker">

<p>{l s='Alege o masura:'}</p>

<div class="clear"></div>

<ul id="size_to_pick_class" class="size_to_pick_list">

{foreach from=$groups key=id_attribute_group item=group}

 

{foreach from=$group.attributes key=id_attribute item=group_attribute}

<li><a id="size_{$id_attribute|intval}" class="size_pick" onclick="updateMasuraSelect({$id_attribute|intval});$('#wrapResetImages').show('slow');" style="opacity: 1;" title="{$group_attribute|escape:'htmlall':'UTF-8'}">{$group_attribute|escape:'htmlall':'UTF-8'} </a></li>

{/foreach}

 

 

 

{/foreach}

</ul>

<div class="clear"></div>

</div>

{/if}

 

Thank you

 

 

Any help? T Y

Link to comment
Share on other sites

  • 1 month later...
  • 6 months later...

i have second group, like 32-33-34-35 ... i want to show numbers like this :

 

number.png

 

Example URL : http://www.ayakkabip...arjin-2506.html

 

 

I would like that as well!

 

I found this module: http://addons.prestashop.com/en/front-office-features-prestashop-modules/4748-improved-attributes-selection.html

 

But would prefer not to spend money on this, please help :)

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...