Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

LouiseDunckley

Pioneers
  • Posts

    2
  • Joined

  • Last visited

LouiseDunckley's Achievements

  1. I using Extra Product Fields addon with Customer Add Products addon, and I am having a problem trying to get the drop down menu for extra product fields to show on account_add.php. It just comes up blank - any ideas? I am not a programmer, so do not want to mess around too much with the php, but believe the problem is with the extra product scripting as follows: // START: Extra Fields Contribution (chapter 1.4) // Sort language by ID for ($i=0, $n=sizeof($languages); $i<$n; $i++) { $languages_array[$languages[$i]['id']]=$languages[$i]; } $extra_fields_query = tep_db_query("SELECT * FROM " . TABLE_EPF_LABELS . " ORDER BY epf_id"); //I changed this from . TABLE_EPF . as nothing showed at all, I now get the labels showing, but no content for the dropdown menu while ($extra_fields = tep_db_fetch_array($extra_fields_query)) { ?> <tr> <td colspan="2" class="main"><b><?php echo $extra_fields['epf_label']; ?>:</b></td></tr> <tr> <td colspan="2" class="main"><?php echo tep_draw_separator('pixel_trans.gif', '1', '15') . ' ' . tep_draw_pull_down_menu("extra_fields[".$extra_fields['value_id']."]", $pInfo->extra_fields[$extra_fields['value_id']]); ?></td> </tr> <tr><td> <tr> <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <? } // END: Extra Fields Contribution Any help would be greatly appreciated!
  2. Hi - Am a newby to oscommerce, but have found the forums and addons very helpful. I had the same problem, but found if I commented out this line (as the languages not necessary on my site): $currentval = (isset($extra[$e['field']][$languages[$i]['id']]) ? stripslashes($extra[$e['field']][$languages[$i]['id']]) : tep_get_product_extra_value($e['id'], $pInfo->products_id, $languages[$i]['id'])); So it become this /*$currentval = (isset($extra[$e['field']][$languages[$i]['id']]) ? stripslashes($extra[$e['field']][$languages[$i]['id']]) : tep_get_product_extra_value($e['id'], $pInfo->products_id, $languages[$i]['id']));*/ The extra product field showed.
×
×
  • Create New...