Folks, when trying to install the Feb 22 dev release I get an error about unexpected } at line X in store.php or similar. Sorry, I didn't take an exact note, will do the next time I know it's important, but hope this will be enough. I was installing in the order mentioned in the documentation.

JB

Comments

J.B-2’s picture

Reinstalled the dev release, here we go:

Parse error: parse error, unexpected '}' in D:\Downloads\CMS\drupal510\sites\all\modules\ecommerce\store\store.module on line 2533

Maybe I shouldn't be posting stuff like this, I don't know, I'm a newbie and not sure of the etiquette?

JB

dwees’s picture

I've got this fixed. Looks an important function declaration line didn't make it into the module by mistake.


// Add the line below in this location
function store_location_settings_form() {
  $countries = store_build_countries();
  $form['ec_country'] = array(
    '#type' => 'select',
    '#title' => t('Store location'),
    '#default_value' => variable_get('ec_country', 'us'),
    '#options' => $countries,
    '#multiple' => FALSE,
    '#description' => 'Default country location.',
  );

  $measures = store_build_measures();
  $form['ec_measure_weight'] = array(
    '#type' => 'select',
    '#title' => t('Weight'),
    '#default_value' => variable_get('ec_measure_weight', 'LBS'),
    '#options' => $measures['weight'],
    '#description' => t('Default unit measure of weight.')
  );
  $form['ec_measure_length'] = array(
    '#type' => 'select',
    '#title' => t('Length'),
    '#default_value' => variable_get('ec_measure_length', 'IN'),
    '#options' => $measures['length'],
    '#description' => t('Default unit measure of length.')
  );
  $form['ec_measure_area'] = array(
    '#type' => 'select',
    '#title' => t('Area'),
    '#default_value' => variable_get('ec_measure_area', 'IN2'),
    '#options' => $measures['area'],
    '#description' => t('Default unit measure of area.')
  );
  $form['ec_measure_volume'] = array(
    '#type' => 'select',
    '#title' => t('Volume'),
    '#default_value' => variable_get('ec_measure_volume', 'IN3'),
    '#options' =>  $measures['volume'],
    '#description' => t('Default unit measure of volume.')
  );

  return system_settings_form($form);
}
J.B-2’s picture

Thanks dwees, I did what you said and it works!

JB

gordon’s picture

Status: Active » Fixed

Thanks, It was fixed last night.

Anonymous’s picture

Status: Fixed » Closed (fixed)