ski2bbad Posted January 23, 2006 Posted January 23, 2006 Has anyone been able to make the contribution Options as Images http://www.oscommerce.com/community/contri...,options+images and Product attributes - Option type Feature v1.71 http://www.oscommerce.com/community/contributions,160 to work together? I can only get dropdown on all options (text, textbox and radio button) if I have the "if" statement added in the catalog/product_info.php if (OPTIONS_AS_IMAGES_ENABLED == 'false') { before $products_attributes_query = tep_db_query(\"select count(*) as total from \" . TABLE_PRODUCTS_OPTIONS . \" popt, \" . TABLE_PRODUCTS_ATTRIBUTES . \" patrib where patrib.products_id='\" . (int)$HTTP_GET_VARS['products_id'] . \"' and patrib.options_id = popt.products_options_id and popt.language_id = '\" . (int)$languages_id . \"'\"); $products_attributes = tep_db_fetch_array($products_attributes_query); if ($products_attributes['total'] > 0) { ?> and add } ?> <?php //Options as Images. Entire php clause added if (OPTIONS_AS_IMAGES_ENABLED == 'true') include ('options_images.php'); ?> after <tr> <td class=\"main\"><?php echo $products_options_name['products_options_name'] . ':'; ?></td> <td class=\"main\"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute) . $products_options_name['products_options_comment']; ?></td> </tr> <?php } //clr 030714 end switch } //clr 030714 end while ?> </table> <?php } //clr 030714 end if As instructed in the "Options as Image" contribution. Is there a way to alter the code so that I can regain the Product attributes - Option type Feature v1.71 features (text, textbox and radio buttons) AND continue to use the "Options as Image? The code doesn't seem hard to fix, but I am brand-new to php and thus I would not know where to start. Any help would be greatly appreciated. Best regards, ski p.s. I have read through all the pages of this thread and 2 people seems to have had the same problem but no solutions has been posted that I could find. Quote
myoung1 Posted January 31, 2006 Posted January 31, 2006 (edited) Has anyone been able to make the contribution Options as Images and Product attributes - Option type Feature v1.71 to work together? I can only get dropdown on all options (text, textbox and radio button) if I have the "if" statement added in the catalog/product_info.php if (OPTIONS_AS_IMAGES_ENABLED == 'false') { before $products_attributes_query = tep_db_query(\"select count(*) as total from \" . TABLE_PRODUCTS_OPTIONS . \" popt, \" . TABLE_PRODUCTS_ATTRIBUTES . \" patrib where patrib.products_id='\" . (int)$HTTP_GET_VARS['products_id'] . \"' and patrib.options_id = popt.products_options_id and popt.language_id = '\" . (int)$languages_id . \"'\"); $products_attributes = tep_db_fetch_array($products_attributes_query); if ($products_attributes['total'] > 0) { ?> and add } ?> <?php //Options as Images. Entire php clause added if (OPTIONS_AS_IMAGES_ENABLED == 'true') include ('options_images.php'); ?> after <tr> <td class=\"main\"><?php echo $products_options_name['products_options_name'] . ':'; ?></td> <td class=\"main\"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute) . $products_options_name['products_options_comment']; ?></td> </tr> <?php } //clr 030714 end switch } //clr 030714 end while ?> </table> <?php } //clr 030714 end if As instructed in the "Options as Image" contribution. Is there a way to alter the code so that I can regain the Product attributes - Option type Feature v1.71 features (text, textbox and radio buttons) AND continue to use the "Options as Image? The code doesn't seem hard to fix, but I am brand-new to php and thus I would not know where to start. Any help would be greatly appreciated. Best regards, ski p.s. I have read through all the pages of this thread and 2 people seems to have had the same problem but no solutions has been posted that I could find. modified info is located here: http://www.oscommerce.com/forums/index.php?sho...18entry787318 Edited January 31, 2006 by myoung1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.