Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Invoice 1.1 installation issue


fredimac

Recommended Posts

Greetings,

 

The instructions for Invoice 1.1 on step 10 indicate that I should:

 

10.) Execute the statements in the file ei_sql.sql to your MySql Server in order to setup the Email Options administration values

 

When I go to phpMyAdmin, click Catalog > SQL > browse to ei_sql.sql and click GO, I get the following error:

 

MySQL said:

 

 

You have an error in your SQL syntax near 'INSERT INTO `configuration` ( `configuration_id` , `configuration_title` , ' at line 3

 

 

Ideas?

 

Thanks in Advance,

Fred

Link to comment
Share on other sites

Sounds like the ei_sql.sql file either has a bug in it, or your version got corrupted when you unzipped it.

 

Post the ei_sql.sql file for folks to look at or if you see the error on line 3 fix it, or try re-downloading and unzipping locally, then ftp to your site. Sometimes end-of-line characters can be a pain.....

 

HTH

Tom

Link to comment
Share on other sites

Post of SQL File ei_sql.sql. I'm not sure how to keep the syntax.

----------------------------------------------------

 

INSERT INTO `configuration` ( `configuration_id` , `configuration_title` , `configuration_key` , `configuration_value` , `configuration_description` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` )

VALUES (

'', 'Email Invoice to Customer', 'EMAIL_INVOICE', 'true', 'If this flag is enabled, the HTML invoice of the order will be sent to the customer.', '12', '0', NULL , NOW( ) , '', ''

)

INSERT INTO `configuration` ( `configuration_id` , `configuration_title` , `configuration_key` , `configuration_value` , `configuration_description` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` ) VALUES ('', 'Default Email Template File', 'EMAIL_TEMPLATE_FILE', 'invoice.php', 'This value dictates which template file will be used when sending the email.', 12, 0, NULL, NOW(), '', '');

 

 

Sounds like the ei_sql.sql  file either has a bug in it, or your version got corrupted when you unzipped it.

 

Post the ei_sql.sql  file for folks to look at or if you see the error on line 3 fix it, or try re-downloading and unzipping locally, then ftp to your site. Sometimes end-of-line characters can be a pain.....

 

HTH

Tom

Link to comment
Share on other sites

Looks like you did not include a configuration_id.

 

VALUES (

'', 'Email Invoice to Customer', 'EMAIL_INVOICE', 'true', 'If this flag is enabled, the HTML invoice of the order will be sent to the customer.', '12', '0', NULL , NOW( ) , '', ''

)

 

should be

 

VALUES (

'999', 'Email Invoice to Customer', 'EMAIL_INVOICE', 'true', 'If this flag is enabled, the HTML invoice of the order will be sent to the customer.', '12', '0', NULL , NOW( ) , '', ''

)

 

The 999 or whatever the contribution readme file suggests. If not, then you'll need to find out via phpmyadmin in the configuration table which id you could use.

 

HTH

Tom

Link to comment
Share on other sites

The readme does not contain any instructions.

 

What is that Value parameter referencing? I'm new to this SQL / PHP stuff. I don't know what to look for in phpMyAdmin.

 

Thanks,

Fred

 

Looks like you did not include a configuration_id.

 

VALUES (

'', 'Email Invoice to Customer', 'EMAIL_INVOICE', 'true', 'If this flag is enabled, the HTML invoice of the order will be sent to the customer.', '12', '0', NULL , NOW( ) , '', ''

)

 

should be

 

VALUES (

'999', 'Email Invoice to Customer', 'EMAIL_INVOICE', 'true', 'If this flag is enabled, the HTML invoice of the order will be sent to the customer.', '12', '0', NULL , NOW( ) , '', ''

)

 

The 999 or whatever the contribution readme file suggests. If not, then you'll need to find out via phpmyadmin in the configuration table which id you could use.

 

HTH

Tom

Link to comment
Share on other sites

Hi Fred,

 

Contributions can store information in your "configuration" table so that they can retrieve things like "Send mail using HTML" and whether its true or false.

 

These values are stored with a contribution configuration_id number that is normally defined by the contribution. Numbers are not assigned because there are literally thousands of contributions and duplicate numbers can cause problems.

 

Using the phpmyadmin tool you can browse the configuration table and determine if a configuration_id is in use by another contribution. Pick a number that is not there and use it the sql command that failed to properly insert the option in your database.

 

If you don't know how to use phpmyadmin, go to the phpmyadmin web site and take a short tutorial on it features and how to use.

 

If that's too complex, then maybe you should consider sticking with the basic oscommerce store with no contributions, or hire a programmer to help you thru the more complex issues. Or continue posting and trudging thru all this stuff and learn alot like most everyone here on the forum.

 

 

HTH

Tom

Edited by OceanRanch
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...