kugi Posted August 20, 2012 Share Posted August 20, 2012 (edited) Hi there, im using a little bit of code that someone did very nicely , is here on the forum.... http://www.prestasho...ned-tab-module/ The problem is that when you have combinations like me and the price changes, the table will only show the price for the default item and when you change the dimension of the box http://www.northsolu...p?id_product=11 the table remains the same..... How could I change this in order for the table to update when you change the dimension of the box?? Many thanks!! Im currently working a way around by adding each product manually and adding +0.11 or whatever the extra price is to create the table but it will be nice if i can do it automatically when you choose a dimension. Also... the values appear over 30, over 15 and over 10... how can i change this around? so you see the smaller value "over 10" first?? Edited August 20, 2012 by kugi (see edit history) Link to comment Share on other sites More sharing options...
kugi Posted August 20, 2012 Author Share Posted August 20, 2012 (edited) I just realised that doing this manually wont work because when i swap product, the table shows general dimension so this need to be updated automatically please help! This is my current code <td><b>Price Per Unit</b></td> {foreach from=$quantity_discounts item='quantity_discount' name='quantity_discounts'} <td> {if $quantity_discount.price != 0 OR $quantity_discount.reduction_type == 'amount'} {$quantity_discount.real_value|floatval} {else} {convertPrice price=($productPrice -(($productPrice + product_attribute *$quantity_discount.real_value)/100))}{/if} </td> {/foreach} </tr> I just need the price calculation to take into account the attribute selected (each attribute changes the price) Edited August 20, 2012 by kugi (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts