Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

TEXTAREA Problem


cclayton

Recommended Posts

Hi Guys

 

I have the OPTION TYPE FEATURE attribute which works well apart from one small detail and that is as follows.

 

When I select a TEXTAREA, online it shows fine except there is some brackets ()showing after which I cannot get rid of. The code I have for the TEXTAREA on product_info.php is:

 

//CLR 030714 Add logic for text option

 

$products_attribs_query = tep_db_query("select distinct patrib.options_values_price, patrib.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = '" . $products_options_name['products_options_id'] . "'");

 

$products_attribs_array = tep_db_fetch_array($products_attribs_query);

 

$tmp_html = '<textarea wrap="soft"

 

name="id[' . TEXT_PREFIX . $products_options_name['products_options_id'] . ']"

 

rows=1

 

id="id[' . TEXT_PREFIX . $products_options_name['products_options_id'] . ']"

 

value="' . $cart->contents[$HTTP_GET_VARS['products_id']]['attributes_values'][$products_options_name['products_options_id']] . '"></textarea>';?> <!-- DDB - 041031 - Form Field Progress Bar //-->

 

 

 

Can anyone suggest what I can change to stop this, it only happens when I select the TEXTAREA option and it is okay for everything else.

 

Please also be aware that I have removed the LIMIT function from the TEXTAREA facility but I still had this problem when the option was there.

 

Thanks,

 

Chris

Founder & Director at CSC Tours Ltd

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...