S_G Posted May 23, 2012 Share Posted May 23, 2012 (edited) Hi! I have next problem. Need display attributes in product-list (and follow impact price and weight after change combination) On product page i made it (weight update) next way (with some edit for 1.4.4.0) http://www.prestasho...n-product-page/ product-list.tpl default have a next code for attrib: {if isset($groups)} <!-- attributes --> {foreach from=$groups key=id_attribute_group item=group} {if $group.attributes|@count} <label for="group_{$id_attribute_group|intval}">{$group.name|escape:'htmlall':'UTF-8'} :</label> {assign var="groupName" value="group_$id_attribute_group"} <select name="{$groupName}" id="group_{$id_attribute_group|intval}" onchange="javascript:findCombination();{if $colors|@count > 0}$('#wrapResetImages').show('slow');{/if};"> {foreach from=$group.attributes key=id_attribute item=group_attribute} <option value="{$id_attribute|intval}"{if (isset($smarty.get.$groupName) && $smarty.get.$groupName|intval == $id_attribute) || $group.default == $id_attribute} selected="selected"{/if} title="{$group_attribute|escape:'htmlall':'UTF-8'}">{$group_attribute|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> {/if} {/foreach} {/if} That it's possible to connect display attrib and product.js on this page, and place price and weight for each product in list. Questions - how to connect attribute, values massive in this page? I think need to edit CategoryController as ProductController, and load values at head product-list. But what and how? Many thanks for your help! You can tell me that is following module for this problem - product list attributes, but he don't update weight, only price, as module works on another js file - pla.js Edited May 23, 2012 by S_G (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts