overdoze Posted September 18, 2010 Share Posted September 18, 2010 Hi I need to list all combinations of any product in product.tpl in this form:* Typeproduct1 -> price combination1 -> add to cart button* Typeproduct2 -> price combination2 -> add to cart button* Typeproduct3 -> price combination3 -> add to cart button but the problem is that when I choose for example to insert the cart in two declination is the default price is added to Carthere is my code >{foreach from=$combinations key=id_product_attribute item=comb} {assign var='nom' value=$comb.attributes_values[$id_attribute_group]|escape:'htmlall':'UTF-8'} {if $nom=='type1' || $nom=='type2' || $nom=='type3'} </pre> <table> {convertPrice price=$product->getPrice(true, $id_product_attribute, 2)} {if !$allow_oosp && $product->quantity == 0} style="display:none;"{/if} id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="" class="exclusive" /></p></table> <br> {/if}<br> {/fo I do know is there any other file to edit to succeed has to cart the price variation for each selectedTHX 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