CKENT00369 Posted February 9, 2008 Share Posted February 9, 2008 Scratch that post above Apparantly after editing three yes three of the admin files i just plain forgot to upload them to my server... DUUUUUUH. Sorry to bother you guys. I feel like an ..... The order emails are still like that though. Sorry to keep posting different posts but the forum wont let me edit? Quote Link to comment Share on other sites More sharing options...
CKENT00369 Posted February 10, 2008 Share Posted February 10, 2008 The order emails are still like that though. Sorry to keep posting different posts but the forum wont let me edit? Ok I fixed this by copying the invoice.php language file from the admin/includes/languages/english folder over to the catalog/includes/languages/english folder, of course I changed the image path for the banner. then editing the filenames.php for order_invoice in the catalog/includes folder Add define('FILENAME_ORDERS_INVOICE', 'invoice.php'); and the order_email.php. I changed from this require(DIR_FS_ADMIN . DIR_WS_LANGUAGES . "/". $language . "/" . FILENAME_ORDERS_INVOICE); to this require(DIR_FS_CATALOG . DIR_WS_LANGUAGES . "/". $language . "/" . FILENAME_ORDERS_INVOICE); Only way I could get it to work. here are my next questions. I have Check/money order payment option, I would like to include the "make check payable to" field appear on the invoices that are shipped out if this payment is selected. Is there an easy way to do this? As you can see I am a newbie (sorry for all the posts) Then next thing is I am hoping to install Discount Coupon Codes v3.3 contrib, I will have to change files in this contrib as well wont I? Quote Link to comment Share on other sites More sharing options...
CKENT00369 Posted February 18, 2008 Share Posted February 18, 2008 OK Since I cant seem to get help from the other contrib I am trying to install maybe someone can help me here. I have installed the fancier invoice & packing slip v6.1. I am trying to install the custom computer creator v9.3.1 http://addons.oscommerce.com/info/407. Since the install of fancier invoice is so different. Can someone help me with what files to change where? Considering the changes that I made to fancier invoice noted above? I am limited on my php abilities but I can do some. I just dont want to mess up the fancier invoice thing. While I would like to have the custom computer thing going too. Like I said I can do some php but I think the changes involved in this are way over my head so any help will be appreciated. Quote Link to comment Share on other sites More sharing options...
PJ2006 Posted February 20, 2008 Share Posted February 20, 2008 I have installed the fancier invoice contribution, it all works fine apart from the email when I get though checkout and click confirm I get the following message Warning: main(/red-onions.co.uk/public_html/admin/includes/languages/english/invoice.php) [function.main]: failed to open stream: No such file or directory in /home/sites/red-onions.co.uk/public_html/includes/modules/email_invoice/email_invoice.php on line 30 Warning: main(/red-onions.co.uk/public_html/admin/includes/languages/english/invoice.php) [function.main]: failed to open stream: No such file or directory in /home/sites/red-onions.co.uk/public_html/includes/modules/email_invoice/email_invoice.php on line 30 Fatal error: main() [function.require]: Failed opening required '/red-onions.co.uk/public_html/admin/includes/languages/english/invoice.php' (include_path='.:/usr/share/pear') in /home/sites/red-onions.co.uk/public_html/includes/modules/email_invoice/email_invoice.php on line 30 everything seems present and correct but I must be doing something worng, any points please Did you get this sorted, or does anyone know the solution I get a similar error on confirm at checkout: Warning: main(includes/modules/EMAIL_INVOICE_DIRFILENAME_EMAIL_INVOICE) [function.main]: failed to open stream: No such file or directory in /home/src/public_html/shop/checkout_process.php on line 226 Warning: main(includes/modules/EMAIL_INVOICE_DIRFILENAME_EMAIL_INVOICE) [function.main]: failed to open stream: No such file or directory in /home/src/public_html/shop/checkout_process.php on line 226 Warning: main(includes/modules/EMAIL_INVOICE_DIRFILENAME_EMAIL_INVOICE) [function.main]: failed to open stream: No such file or directory in /home/src/public_html/shop/checkout_process.php on line 226 Fatal error: main() [function.require]: Failed opening required 'includes/modules/EMAIL_INVOICE_DIRFILENAME_EMAIL_INVOICE' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/src/public_html/shop/checkout_process.php on line 226 I have checked the hints at the end of the install doc and html_invoice.php is definitely in templates. Can anyone help? Thanks Quote Link to comment Share on other sites More sharing options...
deansmar Posted February 24, 2008 Share Posted February 24, 2008 (edited) after reading most of this contribution, there does not seem to be an Answer for my Problem?? so please please Help i have installed Fancier_invoice_6.2_Fixed_2007 and every thing works fantastic after sorting a few minor Problems and altering the standard Language files to the required. (super Contribution, thanks) apart from the following when one looks in the: account_history_info print_my_invoice there is only one (1) letter of the Country in both Address field this Problem is not in the Admin side of things, everything in there is and shows OK looking forward to your replys and fixes? Edited March 30, 2008 by Jan Zonjee Quote Link to comment Share on other sites More sharing options...
Guest Posted February 25, 2008 Share Posted February 25, 2008 Try this, but backup first. In catalog/includes/functions/general.php: undo the Use The Correct Country Name Value When Formatting Addresses change that appeared in the 20060817 patch. Basically, $country = tep_output_string_protected($address['country']['title']); becomes if ($country == '') $country = tep_output_string_protected($address['country']); Quote Link to comment Share on other sites More sharing options...
deansmar Posted February 25, 2008 Share Posted February 25, 2008 Thanks Coopco that did the trick, every thing works just fine now! just a few, small alteration so it looks a little nicer, and then its time to go live! Quote Link to comment Share on other sites More sharing options...
deansmar Posted February 29, 2008 Share Posted February 29, 2008 i have Fancier_invoice_6.2_Fixed_2007 and paypal_standard_1_0_IPN installed, both are very stable on my System! i know i have read that this contribution is not PayPal IPN compatible, and i think i know why its not compatible! all IPN moduls have an extra Folder called "ext" in the Catolog Folder and im not to sure why?????? would it not be plausable just to add this Folder to the required Folders of the email_invoice.php or change FS_ADMIN to Catolog require(DIR_FS_ADMIN . DIR_WS_LANGUAGES . $language . "/" . FILENAME_ORDERS_INVOICE); if so would it then work?? or could someone explain why Fancier_invoice is not compatible insted of just saying NO?? i would like to help in making these two Modules work with each other looking forward to your replys Quote Link to comment Share on other sites More sharing options...
Guest Posted March 1, 2008 Share Posted March 1, 2008 i have Fancier_invoice_6.2_Fixed_2007 and paypal_standard_1_0_IPN installed, both are very stable on my System! i know i have read that this contribution is not PayPal IPN compatible, and i think i know why its not compatible! all IPN moduls have an extra Folder called "ext" in the Catolog Folder and im not to sure why?????? would it not be plausable just to add this Folder to the required Folders of the email_invoice.php or change FS_ADMIN to Catolog require(DIR_FS_ADMIN . DIR_WS_LANGUAGES . $language . "/" . FILENAME_ORDERS_INVOICE); if so would it then work?? or could someone explain why Fancier_invoice is not compatible insted of just saying NO?? i would like to help in making these two Modules work with each other looking forward to your replys It should be just a case of editing the files in the ext folder. I don't know any reason why it would not work with paypal ipn. Maybe you can addd it as an update? Quote Link to comment Share on other sites More sharing options...
AndreD Posted March 28, 2008 Share Posted March 28, 2008 Help ! Installed this fine contribution yesterday, it works fine: now I have a problem. when editing any item, weight is entered in grams: 2000 grams is 2 kg. now I am limited to 999.99 grams ! I do not really think it's this contribution, but can anyone please check if YOU can enter weight=2000 , and make it stay (update product, then edit again to check)? thanks Quote Link to comment Share on other sites More sharing options...
AndreD Posted March 28, 2008 Share Posted March 28, 2008 It was because of DB update - fixed by weight settings in DB. Quote Link to comment Share on other sites More sharing options...
AndreD Posted March 28, 2008 Share Posted March 28, 2008 long time ago, I commented out this in checkout_process.php: (to avoid products being removed from shop when stock==0) if ( ($stock_left < 1) && (STOCK_ALLOW_CHECKOUT == 'false') ) { //do not stop listing if sold out--- tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '0' where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'"); } The problem is, now the products are removed again. Does anyone know what can cause it ? Quote Link to comment Share on other sites More sharing options...
AndreD Posted March 31, 2008 Share Posted March 31, 2008 - Order confirmation emails have broken frames, is there a fix for that ? Thank you for this contribution. Quote Link to comment Share on other sites More sharing options...
AndreD Posted March 31, 2008 Share Posted March 31, 2008 (edited) Found in includes/modules/email_invoice/templates/html_invoice.php : <td background="<?php echo HTTP_SERVER; ?>/catalog/images/borders/maingrey_06.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif" width="19" height="21" alt=""></td> This should NOT be hardcoded to "/catalog/" , it should be relative to shop path, using the DIR_WS_HTTP_CATALOG variable. there are more than one line that needs the same correction please correct in next version. Edited March 31, 2008 by AndreD Quote Link to comment Share on other sites More sharing options...
Roaddoctor Posted March 31, 2008 Share Posted March 31, 2008 Found in includes/modules/email_invoice/templates/html_invoice.php : <td background="<?php echo HTTP_SERVER; ?>/catalog/images/borders/maingrey_06.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif" width="19" height="21" alt=""></td> This should NOT be hardcoded to "/catalog/" , it should be relative to shop path, using the DIR_WS_HTTP_CATALOG variable. there are more than one line that needs the same correction please correct in next version. hey for us noncoders, could you post an example of how you corrected that? Thanks! Quote -Dave Link to comment Share on other sites More sharing options...
AndreD Posted April 2, 2008 Share Posted April 2, 2008 hey for us noncoders, could you post an example of how you corrected that? Thanks! I just removed "/catalog" - so it worked with my shop. - but that should be solved, probaply by echoing the variable I listed. Quote Link to comment Share on other sites More sharing options...
Benjjj6 Posted April 2, 2008 Share Posted April 2, 2008 Hi Can someone show me what the html_invoice.php and box_invoice.php actually look like to my customers? I don't want to enable it as I dont know what they are seeing, an I dont want to purchase from my own shop. Could someone post a screenshot? thanks :) Quote Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2008 Share Posted April 3, 2008 Hi Can someone show me what the html_invoice.php and box_invoice.php actually look like to my customers? I don't want to enable it as I dont know what they are seeing, an I dont want to purchase from my own shop. Could someone post a screenshot? thanks :) Have a look at the first page of this support thread. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 5, 2008 Share Posted April 5, 2008 I have read the complete post of this forum and did not see an answer to my dillema. I installed this contrib today following the instructions to the letter. I even went back over it twice to make sure I didn't miss anything I am now getting the following error: Fatal error: Cannot redeclare tep_db_connect() (previously declared in /mnt/w0207/d18/s05/b02d72b0/www/store/catalog/includes/functions/database.php:13) in /mnt/w0207/d18/s05/b02d72b0/www/store/catalog/includes/functions/database.php on line 13 What is causing this and how do I fix it? Here is lines 13 and 14 of database.php. function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { Quote Link to comment Share on other sites More sharing options...
Guest Posted April 5, 2008 Share Posted April 5, 2008 I have read the complete post of this forum and did not see an answer to my dillema. I installed this contrib today following the instructions to the letter. I even went back over it twice to make sure I didn't miss anything I am now getting the following error: Fatal error: Cannot redeclare tep_db_connect() (previously declared in /mnt/w0207/d18/s05/b02d72b0/www/store/catalog/includes/functions/database.php:13) in /mnt/w0207/d18/s05/b02d72b0/www/store/catalog/includes/functions/database.php on line 13 What is causing this and how do I fix it? Here is lines 13 and 14 of database.php. function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { Man, I hate the way code boxes do that. I think you may have a copy of database.php in the wrong place. Quote Link to comment Share on other sites More sharing options...
AndreD Posted April 5, 2008 Share Posted April 5, 2008 BUG ? when using a payment in advance/banktransfer module - the customer gets payment information in the order-confirmation-email. After I installed Fancier I&P contribution, this information disappeared, until I selected old, and non-HTML order-confirmation email. This makes me believe that the contribution does not honor order comments as it should. PS: the payment module, does NOT need any modification on the original invoice.php . Quote Link to comment Share on other sites More sharing options...
Guest Posted April 5, 2008 Share Posted April 5, 2008 Reloaded everything again this morining. Now have following errors in admin panel: Parse error: syntax error, unexpected ')' in /mnt/w0207/d18/s05/b02d72b0/www/store/catalog/admin/configuration.php(125) : eval()'d code on line 1 Warning: call_user_func('') [function.call-user-func]: First argument is expected to be a valid callback in /mnt/w0207/d18/s05/b02d72b0/www/store/catalog/admin/includes/functions/general.php on line 1224 Any ideas? This is driving me nuts. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 6, 2008 Share Posted April 6, 2008 The two mentioned files have errors. It is not possible to deduce what they are without knowing what the two lines are. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 6, 2008 Share Posted April 6, 2008 Is it possible to have the "Invoice" heading text changed to "Tax Invoice" for customers from a specific country? ie: Australian customers see "Tax Invoice" while everyone else sees "Invoice" Quote Link to comment Share on other sites More sharing options...
pablomontanero Posted April 18, 2008 Share Posted April 18, 2008 Hi all I installed the contribution and the invoice part in admin is working perfectly but the html order confirmation email does not contain the lines for shipping, subtotal, and order number. I have a worldpay module installed and I am using the fancy.php template. Can anyone help? Could it be that I need to add something to the worldpay file to retrieve the data for these values? Richard Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.