Jump to content

problem with adding combination in cart


Recommended Posts

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 Cart
here 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 selected
THX

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