Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

MrStatic

Archived
  • Posts

    4
  • Joined

  • Last visited

Posts posted by MrStatic

  1. 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. Hi,

     

    Has anyone managed to get this working on UK currency. it works on Euro and Dollar but doesnt on the UK Sterling which is what I need. I am totally hating it as this was one of the last things i need to get my store running.

     

    Basically I need it so when someone chooses an attribute it updates the product price at the top.

     

    Any help appreciated on getting this working.

     

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

×
×
  • Create New...