This link will give some history of this topic. Previous Thread
I'll repeat my question here because this seems to be a better place to post it.
----------------------------------------
A question I would have is what if I want to add the attribute before the model and have it based on attribute conditions. For example:
I have different sizes 1in, 1.5in, 2in. If I did it the way proposed, I get modelx1in. Obviously it's easy to reverse but I want it to display instead of 1in, 100 and instead of 1.5, 150 and so on.
I tried with this simple if statement but I've had no luck. I'm pretty new to PHP and was wondering if I could get your guys input.
Code:if ($value == PRODUCTS_OPTIONS_VALUES_TEXT_ID){ $attr_value = $products[$i]['attributes_values'][$option]; } else { $attr_value = $attributes->fields['products_options_values_name']; } $strModel_100 = "1in"; $strDisplay_100 = "100-"; if ($attr_value == $strModel_100){ $this->products[$index]['model'] = $strDisplay_100 . $products[$i]['model']; }



