Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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.

Posted (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 by myoung1

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...