rock^ Posted December 18, 2009 Posted December 18, 2009 Any ideas what´s wrong? When watching in the shopping cart the attributes shows like this in web browser: <br><small><i> - <input name="id[30{1}2{2}11{3}14+++1][1]" value="2" type="hidden"> </i></small><br><small><i> - <input name="id[30{1}2{2}11{3}14+++1][2]" value="11" type="hidden"> </i></small><br><small><i> - <input name="id[30{1}2{2}11{3}14+++1][3]" value="14" type="hidden"> </i></small> </td> The product has 3 selected attributes and it only shows the "-" character 3 times in shopping cart. The 3 attributes are well shown in checkout. The below is from shopping_cart.php: if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { reset($products[$i]['attributes']); while (list($option, $value) = each($products[$i]['attributes'])) { $products_name .= '<br><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>'; } } Where: $products[$i][$option]['products_options_name'] = $attr_name; $products[$i][$option]['products_options_values_name'] = $attr_value ; And: $attr_value = $attributes_values['products_options_values_name'] . tep_draw_hidden_field('id[' . $products[$i]['id'] . '+++' . $i. '][' . $option . ']', $value); $attr_name = $attributes_values['products_options_name']; I have installed one addon for attributes: Product attributes option type feature 3.0. I think the problem came out after the installation.
FIMBLE Posted December 19, 2009 Posted December 19, 2009 Go over the install again make sure that it was installed correctly, if the problem persists you will be better off un installing it and doing it again Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
rock^ Posted December 24, 2009 Author Posted December 24, 2009 Thank you FIMBLE! There were missing a line from the shopping_cart.php: $attributes_values = tep_db_fetch_array($attributes); Added it and it´s working now again.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.