Jump to content

MrStatic

Members
  • Content count

    4
  • Joined

  • Last visited

  1. MrStatic

    Options - Price Update

    Ok so this mod works but it does not for me. I use a mod I found here to change my attributes to radio buttons. Now I use a different function. So this line Search For: <td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td> Change to: <!-- Attrib price update //--> <td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute, "onChange='showPrice(this.form);showPrice1(this.form);'");?></td> <!-- Proyecto Icaro (Fin Modificado) //--> Won't work for me. If I use that code but change the function no price shows, I have tried to just hard code the onchange part into the function itself but no go. The function is function tep_draw_radio_menu($name, $values, $default = '', $parameters = '', $required = false) { $field ='<table border="0" cellspacing="0" cellpadding="0"><tr><td class="main">'; if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]); for ($i=0, $n=sizeof($values); $i<$n; $i++) { $value = tep_output_string($values[$i]['id']); $field .= '<input type="radio" name="' . $name . '" value="' . $value . '"'; if ($i == 0) $field .= ' checked'; $field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</br>'; } $field .= '</td></tr></table>'; if ($required == true) $field .= TEXT_FIELD_REQUIRED; return $field; } Any help would be appreciated.
  2. MrStatic

    options price update help needed

    Heh I wish I could get it to work period, it just makes my price dissapear and I am set to usd
×