Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fancier Invoice & Packingslip v1.0


PopTheTop

Recommended Posts

Here is what I think the problem is:

for the graphics that work, the code looks like this

<img src="<?php echo $ei_image_dir; ?>borders/maingrey_07.gif" width="11" height="18" alt="">

 

for the graphics that dont' work, the code looks like this

><img src="' . HTTP_SERVER . '/catalog/images/borders/maingrey_06.gif" width="19" height="21" alt="">

 

I don't have a catalog folder.

 

I could hard code this, but my guess is you will probably change it in the next revision (that is if you have slept at all yesterday).

 

 

Like I said before, just change the ones that do not work to match the ones that do work. In this case, you would change all the

 

<img src="' . HTTP_SERVER . '/catalog/images/borders/

to this:

<img src="<?php echo $ei_image_dir; ?>borders

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

So far it seems to be fixed for my authorize.net 1.7b module.  I can't test paypal, paypal seems to be down all day for gateway payments.  Anyone else seeing this?

One other thing, I've included a pic.  the comments area of the invoice has missing graphics.

 

test.gif

 

Make sure your pictures are in the linked folder. Easiest way is to just upload the borders folder to all your image folders (i have 3 i think).

Link to comment
Share on other sites

Finally paypal's sandbox is back up.

 

I tested but still no html. My guess is the new paypal 1.1 module by the osc team must use it's own email files? I don't know enough about php to fix it.

 

So, for anyone who is interested, 5.4 will give an html invoice for authorize.net 1.7b but not for paypal ipn 1.1 by osc.

Link to comment
Share on other sites

Like I said before, just change the ones that do not work to match the ones that do work. In this case, you would change all the

 

<img src="' . HTTP_SERVER . '/catalog/images/borders/

to this:

<img src="<?php echo $ei_image_dir; ?>borders

 

Actually, as I look closer, <?php echo $ei_image_dir; ?> will not work because in the comments section, the whole thing is already included in <?php unlike the invoice section above it. It is using <?php echo to render the html

 

should it be something like

<img src="' . ei_image_dir . 'borders/file.gif'"

 

again, I'm not to good at this.

Link to comment
Share on other sites

Guess what, I just updated this AGAIN!

 

Version 5.5 is out, I will upload it today. It fixes the image problems. I believe I made a few other changes somewhere also. I just can't remember.

 

To update, I really suggest using a View and Compare program like WinGrep from www.wingrep.com

 

There's too many update changes to log them all each time for those updating this.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

Hi

 

Thanks for a great contribution.

 

I have one problem after using it. There are not being sent extra order mails anymore to the adresses I have under Configuration - My store - Send extra Order Emails to.

 

Anyone who knows how to fix this. Is it a bug?

 

/MR.T

Link to comment
Share on other sites

I believe you asked that before, both on this forum and to me through a PM. Again, you have to change your language files to displaye what you want.

 

Open catalog/admin/includes/language/XXXX/invoice.php

 

Change define('INVOICE_TEXT_INVOICE', 'Invoice');

 

I asked before that's true but not PM. I've checked the language file and this question regards the packingslip.php

 

This is the code:

 

<?php

/*

$Id: packingslip.php,v 5.4 2005/05/09 17:41:55 PopTheTop Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

//// START Edit the following defines to your liking ////

 

// Misc Invoice Info

define('INVOICE_TEXT_CURRENT_YEAR', '05'); // Set this to the current year (2 digits only)

 

// Footing

define('INVOICE_TEXT_THANK_YOU', 'Tack f?r att ni handlar hos'); // Printed at the bottom of your packingslips

define('STORE_URL_ADDRESS', 'http://www.barack.se'); // Your web address Printed at the bottom of your packingslips

 

// Image Info

define('INVOICE_IMAGE', 'images/index.jpg'); //Change this to match your logo image and foler it is in

define('INVOICE_IMAGE_WIDTH', '100'); // Change this to your logo's width

define('INVOICE_IMAGE_HEIGHT', '80'); // Change this to your logo's height

define('INVOICE_IMAGE_ALT_TEXT', 'H?r g?r du alltid den b?sta aff?ren !!!!'); // Change this to your logo's ALT text or leave blank

 

// Product Table Info Headings

define('TABLE_HEADING_PRODUCTS_MODEL', 'Modell #'); // Change this to "Model #" or leave it as "SKU #"

 

//// END Editing the above defines to your liking ////

 

 

define('TABLE_HEADING_COMMENTS', 'Kommentarer');

define('TABLE_HEADING_PRODUCTS_MODEL', 'Modell');

define('TABLE_HEADING_PRODUCTS', 'Produkter');

 

define('ENTRY_SOLD_TO', 'S?LD TILL:');

define('ENTRY_SHIP_TO', 'LEVERERAD TILL:');

define('ENTRY_PAYMENT_METHOD', 'Betalnings Metod:');

 

define('INVOICE_NUMBER', 'Faktura #');

define('TITLE', 'F?ljesedel');

define('ORDER_NUMBER', 'Best?llnings #:');

define('ORDER_DATE', 'Best?llnings datum');

?>

 

If I understand this correctly define('TITLE', 'F?ljesedel'); should display

F?ljesedel in the Browser head. But it says Storename project -05-xxxx

I can live with that but I would prefer to have Packsedel in the beginning of

the customer information.

 

// Storeman:- :blush:

Link to comment
Share on other sites

I am also falling at the first hurdle with the insert statements - I saw your reply to another person with the same problem, but didn't understand the answer! I am not that familar with MySql.

 

My error was

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

SQL-query:

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 (

'', 'Send HTML or Text Invoices to Customers', 'EMAIL_INVOICE', 'true', 'If this is enabled, order invoices will be sent to the customer in HTML format.<br><br>Enabled = true<br>Disabled = false<br><br>To use this, you must have HTML E-mails enabled.<br><br>', '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 E-Mailed HTML Invoice Template', 'EMAIL_TEMPLATE_FILE', 'invoice.php', 'File name of the template file you will be using when the store e-mails HTML invoices to your customers<br><br>"invoice.php" for the stock osC look<br><br>"html_invoice.php" for the HTML version<br><br>', 12, 0, NULL , NOW( ) , '', ''

)

MySQL said:

#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO `configuration` ( `configuration_id` , `configurati

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

What do you mean by "You must remove the 2 if they were saved into your database FIRST!", and how do I do that?

Thanks

Link to comment
Share on other sites

I just installed v 5.1.? All the info is there and works fine on the screen.? However, when I print an invoice, the outlines of the boxes do not line up correctly.? the horizontals are lower and the left hand verticals are pushed to the right, except for the very centre vertical - that is in the correct line with the corners.? the shading works as it should.

 

I am using Safari v2.0 on Mac OS 10.4.? background printing of images is turned ON.

 

I'm not sure if anyone is able to solve this problem for me.? But other Mac users best be aware of this issue before they install.? As always, make a BACKUP of everything so that you can go back to what you had if it doesn't work out.

I have the same problem with a Linux/Apache server and Windows/IE browser. Is there a fix for this or an idea about what is causing it?

 

Thanks,

ed

Edited by medvid
Link to comment
Share on other sites

Guess what, I just updated this AGAIN!

 

Version 5.5 is out, I will upload it today. It fixes the image problems. I believe I made a few other changes somewhere also. I just can't remember.

 

To update, I really suggest using a View and Compare program like WinGrep from www.wingrep.com

 

There's too many update changes to log them all each time for those updating this.

 

To make my life a hell of a lot easier and everyone elses ... can I ask a question?

 

The install file that has the install instructions. Are the code changes we need to manually make the same as 5.4? If so then all we need to do is upload the new files, right?

 

Thanks! :D

Link to comment
Share on other sites

this is the error my customers are getting when checking out---

 

Warning: Cannot modify header information - headers already sent by (output started at /home/trade/public_html/store1/includes/application_top.php:509) in /home/trade/public_html/store1/includes/functions/general.php on line 29

 

please let me know what to do

 

thanks :(

Link to comment
Share on other sites

Hi

 

Thanks for a great contribution.

 

I have one problem after using it. There are not being sent extra order mails anymore to the adresses I have under Configuration - My store - Send extra Order Emails to.

 

Anyone who knows how to fix this. Is it a bug?

 

/MR.T

 

 

Not sure why. This should not have anything to do with that so the error must be somewhere else.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

I asked before that's true but not PM. I've checked the language file and this question regards the packingslip.php

 

This is the code:

 

<?php

/*

  $Id: packingslip.php,v 5.4 2005/05/09 17:41:55 PopTheTop Exp $

 

  osCommerce, Open Source E-Commerce Solutions

  http://www.oscommerce.com

 

  Copyright ? 2002 osCommerce

 

  Released under the GNU General Public License

*/

 

//// START Edit the following defines to your liking ////

 

// Misc Invoice Info

define('INVOICE_TEXT_CURRENT_YEAR', '05'); // Set this to the current year (2 digits only)

 

// Footing

define('INVOICE_TEXT_THANK_YOU', 'Tack f?r att ni handlar hos'); // Printed at the bottom of your packingslips

define('STORE_URL_ADDRESS', 'http://www.barack.se'); // Your web address Printed at the bottom of your packingslips

 

// Image Info

define('INVOICE_IMAGE', 'images/index.jpg'); //Change this to match your logo image and foler it is in

define('INVOICE_IMAGE_WIDTH', '100'); // Change this to your logo's width

define('INVOICE_IMAGE_HEIGHT', '80'); // Change this to your logo's height

define('INVOICE_IMAGE_ALT_TEXT', 'H?r g?r du alltid den b?sta aff?ren !!!!'); // Change this to your logo's ALT text or leave blank

 

// Product Table Info Headings

define('TABLE_HEADING_PRODUCTS_MODEL', 'Modell #'); // Change this to "Model #" or leave it as "SKU #"

 

//// END Editing the above defines to your liking ////

define('TABLE_HEADING_COMMENTS', 'Kommentarer');

define('TABLE_HEADING_PRODUCTS_MODEL', 'Modell');

define('TABLE_HEADING_PRODUCTS', 'Produkter');

 

define('ENTRY_SOLD_TO', 'S?LD TILL:');

define('ENTRY_SHIP_TO', 'LEVERERAD TILL:');

define('ENTRY_PAYMENT_METHOD', 'Betalnings Metod:');

 

define('INVOICE_NUMBER', 'Faktura #');

define('TITLE', 'F?ljesedel');

define('ORDER_NUMBER', 'Best?llnings #:');

define('ORDER_DATE', 'Best?llnings datum');

?>

 

If I understand this correctly  define('TITLE', 'F?ljesedel'); should display

F?ljesedel in the Browser head. But it says Storename project -05-xxxx

I can live with that but I would prefer to have Packsedel in the beginning of

the customer information.

 

// Storeman:-    :blush:

 

 

Does it state "Storename project -05-xxxx" or "STORE_NAME project -05-xxxx" - Big difference.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

I am also falling at the first hurdle with the insert statements - I saw your reply to another person with the same problem, but didn't understand the answer! I am not that familar with MySql.

 

My error was

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

SQL-query:

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 (

'', 'Send HTML or Text Invoices to Customers', 'EMAIL_INVOICE', 'true', 'If this is enabled, order invoices will be sent to the customer in HTML format.<br><br>Enabled = true<br>Disabled = false<br><br>To use this, you must have HTML E-mails enabled.<br><br>', '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 E-Mailed HTML Invoice Template', 'EMAIL_TEMPLATE_FILE', 'invoice.php', 'File name of the template file you will be using when the store e-mails HTML invoices to your customers<br><br>"invoice.php" for the stock osC look<br><br>"html_invoice.php" for the HTML version<br><br>', 12, 0, NULL , NOW( ) , '', ''

)

MySQL said: 

#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO `configuration` ( `configuration_id` , `configurati

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

What do you mean by "You must remove the 2 if they were saved into your database FIRST!", and how do I do that?

Thanks

 

 

For starters, that is from an older version. You need to get the latest version and the install instructions (detailed) are in that installation file.

 

If you already installed the new table: EMAIL_TEMPLATE_FILE and MAIL_INVOICE then you need to remove them beforte importing the updated ones. If you do not, you will get an error.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

I have the same problem with a Linux/Apache server and Windows/IE browser.  Is there a fix for this or an idea about what is causing it?

 

Thanks,

ed

 

 

That is most likely your printer settings.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

To make my life a hell of a lot easier and everyone elses ... can I ask a question?

 

The install file that has the install instructions.  Are the code changes we need to manually make the same as 5.4?  If so then all we need to do is upload the new files, right?

 

Thanks!  :D

 

 

 

Yes, just replace your files.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

this is the error my  customers are getting when checking out---

 

Warning: Cannot modify header information - headers already sent by (output started at /home/trade/public_html/store1/includes/application_top.php:509) in /home/trade/public_html/store1/includes/functions/general.php on line 29

 

please let me know what to do

 

thanks :(

 

 

You need to upgrade to the latest version. That was fixed a while back and if you read the last 3 pages or so, you will see more info on it.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

Is the logo suppose to show when you view the invoice or does it only show up when you print it?

 

 

Both...

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

can anyone help me with my error please????

 

 

If you would install the LATEST version, you will be fine. That is caused by having extra blank spaces or line breaks at the very end of your php files. Most likely your language files or the PHP files that came with this MOD.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

Also where do you change enter the store info thats on the print_invoice page?

 

 

Everything should be in the language files and your address/phone is in the Admin / Config / My Store

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

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.
Note: Your post will require moderator approval before it will be visible.

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...