Jump to content

add combination box to product listings


steve67
 Share

Recommended Posts

Is there a way to add a combination box to product listings?

I have added a quantity box using the instructions listed in this thread (http://www.prestashop.com/forums/viewthread/28136/general_discussion/add_quantity_box_to_product_listing) and it works great, but I would like to have a combo box to list different sizes of the same product on the product listings.

Share this post


Link to post
Share on other sites

I added the following to my product-list.tpl file. The product listing shows the title 'Size :' and a drop down box, but I cannot seem to get the combo box information to display properly. Any Ideas?

{l s='Size :'}
               {assign var='groupName' value='group_'|cat:$id_attribute_group}

                   {foreach from=$group.attributes key=id_attribute item=group_attribute}
{$group_attribute|escape:'htmlall':'UTF-8'}
                   {/foreach}

Share this post


Link to post
Share on other sites

It is not a simple task, especially not if you have more than one attribute group per item.

There are a couple of threads regarding this, though I'm not sure if anyone actually got it working.

Share this post


Link to post
Share on other sites

  • 4 months later...

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
 Share

×
×
  • Create New...

Important Information

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