basford Posted October 25, 2011 Share Posted October 25, 2011 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 More sharing options...
MarcusAT Posted January 10, 2012 Share Posted January 10, 2012 I would also be very interested in this! Is it possible? Link to comment Share on other sites More sharing options...
need4speed Posted January 12, 2012 Share Posted January 12, 2012 Me too Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 12, 2012 Share Posted January 12, 2012 Hello! Yes, it is possible, but requires extra coding. You need to change CategoryController and use a different SQL query than the one in the 'getProducts' function (method of the Category class). Link to comment Share on other sites More sharing options...
Francisco Carlão Posted March 1, 2012 Share Posted March 1, 2012 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 1 Link to comment Share on other sites More sharing options...
Cope Posted April 19, 2012 Share Posted April 19, 2012 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 More sharing options...
aleksejsmir Posted July 19, 2015 Share Posted July 19, 2015 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now