Jump to content

Display all product combinations in category list


Recommended Posts

Does anyone know how to display all product combinations (for me, just colors) when products are being listed to the visitor?

I know its going to be a 'for each' statement in the product-list.tpl file but im not sure of how to phrase it and what variables to use.

 

Basically, I want to have one product (e.g. an ipod) and then have all the color combinations for that product (with different images for each color combination) and then have them all display has separate products in the category view, but when clicked, just end up going to the one product page.

 

Any help would be greatly appreciated :)

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

for collors

first, product-list.tpl in your theme (where yu want it to show up)

 

{if !empty($product.colors)}
<span class="availability">{l s='Colors:'}</span>
   {foreach from=$product.colors key=id_attribute item=color}
			 <span class="color_picker"  title="{$color.name}" style="cursor:auto !important;"><img src="{$img_col_dir}{$id_attribute}.jpg" width="20" height="20" /></span>
   {/foreach}
{/if}

 

Now the hard part.

You will find a lot of code for this but it does not work with search, prices drop, new products or tags .

this link is for 1.4.6 (but you can see the code and copy it to your´s)

http://appwebgest.com/list_imagens_controlers.zip

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

This is (i think) just what I was looking for. However, I don't get anything in $product.colors for my products with color-combinations.

I have started with just implementing the changes in CategoryController.php and the code added to product-list.tpl. No success - $product.colors remains empty.

Link to comment
Share on other sites

  • 3 years later...

Hello!

I think you were looking this?  :)

 

 

 

Category Product Combinations v0.1.0 - by Pavel Alexeev. Module to show product attribute combinations right in directory listing. Allow select attributes and see images and price change, place selected in cart.

 

Test, please. It`s free.

 

 

phoca_thumb_l_categorycombinations2.gif

 

 

 

 

 

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