jesper03 Posted July 29, 2016 Share Posted July 29, 2016 Hi everyone, I edited the product.tpl file in order to list Quantity attribute (combination) in a table. I get something like this Quantity PriceWithTax PriceWithoutTax Add 100 10€ 5€ button 250 20€ 10€ button 500 40€ 30€ button 1000 60€ 50€ button Now i added the new attribute "Graphics" (yes/no) and I need to add 5€ if the attribute is Yes. I created the combinations between quantity and graphics so the prices are correctly updated according to the attributes that are selected. The problem is that now the table is not showing anymore the price associated only with quantity, but according to the combination with graphics. I want to show only quantity related price and if I select the graphics attribute the price have to change only in the top price resume. An alternative way to accomplish this task should be to use some different option selection that can modify the price and that is not a combination. Any ideas? This is the code I added to ProductController.php to get price values. $groups[$row['id_attribute_group']]['name_price'][$row['id_attribute']] = array('name' => $row['attribute_name'],'price' => number_format($row['price'],2), 'attribute_id' => $row['id_attribute']); Thanks in advance. 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