This is a slightly different question from my original concerning LOTS of attributes per product.
Refresh: office furniture store, roughly 222 fabrics per product (just not EVERY product in the store, but about 2/3 of the store).
I started adding the attributes to the following product.
The attributes themselves are listed in the drop down.
I am in the process of adding their associated images.
I have added the addon - Attribute Rollover
It just added a line of code to the attributes.php and some CSS.
http://www.zen-cart.com/index.php?ma...oducts_id=1765
Here's the product I'm currently working on:
http://www.caofficedesign.com/shop/i...roducts_id=260
Question:
It looks like, as I add the attribute images, that it will all be in one column. I'm thinking they can go at least 4 columns across.
How can I alter the code to achieve this, as I do not see anything anywhere under Configuration to set this.
Here's the code in /modules/attributes.php associated with attribute images:
Code:// collect attribute image if it exists and to be drawn in table below if ($products_options_names->fields['products_options_images_style'] == '0' or ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_FILE or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_TEXT or $products_options_names->fields['products_options_type'] == '0') ) { if ($products_options->fields['attributes_image'] != '') { $tmp_attributes_image_row++; // if ($tmp_attributes_image_row > PRODUCTS_IMAGES_ATTRIBUTES_PER_ROW) { if ($tmp_attributes_image_row > $products_options_names->fields['products_options_images_per_row']) { $tmp_attributes_image .= '<br class="clearBoth" />' . "\n"; $tmp_attributes_image_row = 1; } // BOF ATTRIBUTE ROLLOVER CODE $tmp_attributes_image .= '<div class="attribImg">' . '<a class="attribRoll" href="" onclick="return false;">' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . '<i>' . zen_image(DIR_WS_IMAGES . $products_options->fields['attributes_image']) . '</i>' . '</a>' . (PRODUCT_IMAGES_ATTRIBUTES_NAMES == '1' ? '<br />' . $products_options->fields['products_options_values_name'] : '') . '</div>' . "\n"; // EOF ATTRIBUTE ROLLOVER CODE } }
Bookmarks