SuperSewist Posted February 17, 2006 Share Posted February 17, 2006 canucks_gal: if you get a blank page it is assuredly a coding mistake, copy-n-paste oops, missed } or ( deleted ; by accident. added stuff in when it was supposed to be replaced. that sort of thing. Look at the page name in your browser address window when you get the blank, and start your troubleshooting by re-installed the MOD for that page. These two were the first MODS I installed w/o much of a clue on php, heavy learning curve, lots of mistakes, lots of flat-forehead moments. Took awhile to get it right, it was all my little errors. read the entire forum (for both MODS) (yes really I mean it!) from the date of the MOD package you are using up to current. There's good chance that every problem you run into has already been had by someone else and the answer is right here for the digging. B) azer: what is the style listing? what is the line you are using it with (class="?") do you have a stylesheet editor? highdots css validator is pretty cool, found lots of little errors for me, all sweet and color-coded. It would be great for your template idea if every spot that was reasonable to change (esp. color & font) had a style class. :thumbsup: 1BdKty: thanks for the update for all, I guess that helps with my guess that a style on the page (background-image:none) overrides a style in the .css file. Still learnin' :P Quote Toward Continued Success - - > Carol Hawkey - - > KidsLearnToSew.com - - > Wyoming, USA Mods Installed - - > Authnet AIM2 - Bundled Products 1.4 - Fancier Invoice 6.1 - Email_HTML_Order_Link_Fixed - Header Tags Controller - Login aLa Amazon - JustOneAttribute - Article Manager - SPPC w/PB - spiders.txt - Dangling Carrot/Olive - Printable Catalog - CCGV(trad) Planned Mods - - > Purchase Without Account - USPS Label - Ultimate SEO Link to comment Share on other sites More sharing options...
aodfan Posted March 1, 2006 Share Posted March 1, 2006 Hello, I installed this contribution awhile back, and have a prob a now, whenever and only when you add a comment to the order it does not go to the normal order complete screen, but goes to this filling the whole browser, leaving the store.... ERROR: Fatal error: Cannot instantiate non-existent class: objectinfo in /hsphere/local/home2/aodfan/alteredmotorsports.com/catalog/includes/modules/email_invoice/templates/fancy.php on line 282 Code in fancy.php on line 282: <?php while ($orders_comments = tep_db_fetch_array($orders_status_history_query)) { if (tep_not_null($orders_comments['comments'])) { $has_comments = true; // Not Null = Has Comments if (tep_not_null($orders_comments['comments'])) { $sInfo = new objectInfo($orders_comments); [b] <------------Line 282[/b] ?> I tried reinstalling with the most recent version, but same thing, and really the fancy.php isnt there anymore and I do not know why. If it is down to it, is there a way to turn off the use of comments, which brings up a question, how often do customers use that comment box? Thanks in advance Quote Link to comment Share on other sites More sharing options...
invasi0n Posted March 2, 2006 Share Posted March 2, 2006 Hello, Is there any way to include the payment instructions in the html invoice? The original osc invoice sends at bottom this: if ($payment_class->email_footer) { $email_order .= $payment_class->email_footer . "\n\n"; } } But how to include that in the html invoice? Thanks. Quote Link to comment Share on other sites More sharing options...
invasi0n Posted March 3, 2006 Share Posted March 3, 2006 (edited) Hello,Is there any way to include the payment instructions in the html invoice? The original osc invoice sends at bottom this: if ($payment_class->email_footer) { $email_order .= $payment_class->email_footer . "\n\n"; } } But how to include that in the html invoice? Thanks. I found a way and it works for me. Here is the code i used <?php if (tep_not_null($order->info['payment_method'])) { $this->email_footer; ?> <?php echo $this->email_footer; ?> <?php } ?> Edited March 3, 2006 by invasi0n Quote Link to comment Share on other sites More sharing options...
xao Posted March 3, 2006 Share Posted March 3, 2006 Nice contrib, I do have a small issue with it right now though... I can pull up and print Packing Slips no problem, however, the Invoices do not work. They print the banner, Sold to and even the Order #: line.... Then it's just a blank page. In my apache error logs I get the following error: [client 12.223.144.162] PHP Fatal error: Using $this when not in object context in /var/www/html/www.intotheoven.com/admin/invoice.php on line 183, referer: http://www.intotheoven.com/admin/orders.php?page=1&oID=10 No, if I go into my e-mail options and change the default type to the box_email, the customer will then receive at least the box_html template, but if I have it set for html_invoice, they get the same error as trying to pull up an invoice in the admin, which appears to not have a section for configuring anything other than the html_invoice and not the box_invoice. Any insights would be appreciated. Thanks! Quote Link to comment Share on other sites More sharing options...
xao Posted March 3, 2006 Share Posted March 3, 2006 Has anyone gotten this to work with Authorize.net + gpg? I can print the packing slips just fine, and the e-mail of the Invoice goes fine, but clicking on Invoice in the admin section bombs out (the packing slip there works fine too). I know it's related to the Authorize.net + gpg contrib I have working. I had to change the cc_number field from a varchar(32) to a text field in order for it to grab the gpg output. Thanks for any thoughts! Quote Link to comment Share on other sites More sharing options...
Guest Posted March 11, 2006 Share Posted March 11, 2006 I have copied it over the old invoice and nothing has changed is there something im doing wrong. not sure how to doit. Quote Link to comment Share on other sites More sharing options...
carbonman Posted March 16, 2006 Share Posted March 16, 2006 The fatal error issue is solved. A little slash forgotten in configure.php.But the first issue still unsolved. what was your solution to this problem?? I seem to be getting this as well. Warning: main(/home/compactdivisions.com/public_html/catalog/admin/includes/languages/english/invoice.php): failed to open stream: No such file or directory in /home/compactd/public_html/shop/includes/modules/email_invoice/email_invoice.php on line 30 Fatal error: main(): Failed opening required '/home/compactdivisions.com/public_html/catalog/admin/includes/languages/english/invoice.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/compactd/public_html/shop/includes/modules/email_invoice/email_invoice.php on line 30 Quote Link to comment Share on other sites More sharing options...
carbonman Posted March 16, 2006 Share Posted March 16, 2006 Disregard. here is the fix for those looking/searching and scratching like I was. the absolute path is needed. ie. in my example this (/home/compactdivisions.com/public_html/catalog/admin/includes/languages/english/invoice.php) should be (/home/compactd/public_html/catalog/admin/includes/languages/english/invoice.php) as it says in the very next line below (is there a smack my head smilie??) Quote Link to comment Share on other sites More sharing options...
Guest Posted March 16, 2006 Share Posted March 16, 2006 I would love to install this contrib, but since I rely on PayPal IPN for my merchant banking payment method, I can't use it. I can't believe that so many people do not offer PayPay IPN. Surely someone has it working with this contrib. Quote Link to comment Share on other sites More sharing options...
aodfan Posted March 18, 2006 Share Posted March 18, 2006 Is everyone else able to use comments with this contribution? Quote Link to comment Share on other sites More sharing options...
SuperSewist Posted March 20, 2006 Share Posted March 20, 2006 (edited) I tweaked mine to show comments through view_history, admin/invoice & packing slip, still not showing in email. Been awhile, I remember copying the status listing code from the admin/orders section (y'know where you look at the order and it has the comments below and you can email & update) and pasting it into the fancier invoice sections where I wanted it. Edited March 20, 2006 by SuperSewist Quote Toward Continued Success - - > Carol Hawkey - - > KidsLearnToSew.com - - > Wyoming, USA Mods Installed - - > Authnet AIM2 - Bundled Products 1.4 - Fancier Invoice 6.1 - Email_HTML_Order_Link_Fixed - Header Tags Controller - Login aLa Amazon - JustOneAttribute - Article Manager - SPPC w/PB - spiders.txt - Dangling Carrot/Olive - Printable Catalog - CCGV(trad) Planned Mods - - > Purchase Without Account - USPS Label - Ultimate SEO Link to comment Share on other sites More sharing options...
aodfan Posted March 21, 2006 Share Posted March 21, 2006 well my issue is happening if you add a comment during ordering and finalize your order, the invoice pops up filling the browser, as you can see from my post above, Is there a way to hide the comment option, is it really neccessary? Do customers use it often? Quote Link to comment Share on other sites More sharing options...
SuperSewist Posted March 22, 2006 Share Posted March 22, 2006 James, there is surely something wacky in either the page upon which a comment is entered, or on the next page. It shouldn't go directly to the fancier invoice. The fancier invoice is provided to the customer as an email, and as a button in their 'view_history' (at least that is how mine is v.6.1) You can probably comment out the comments section. Do customers use it? I suppose it depends on the store. Mine use it pretty regular, usually about half the orders have comments. Sometimes it is just to say HI and I get a little update on how their classroom and students are doing. Sometimes it is a shipping detail like 'leave on back porch'. Which is why I went through and added it to print in all the places where it wasn't. now about the error. do you have class objectInfo { etc. at the top of your fancy.php? My template file (html_invoice.php) has it starting on line 13. If it is missing all or part, well there's a trouble. Check your fancy.php against some of the other templates; my FI did not come with fancy.php. Quote Toward Continued Success - - > Carol Hawkey - - > KidsLearnToSew.com - - > Wyoming, USA Mods Installed - - > Authnet AIM2 - Bundled Products 1.4 - Fancier Invoice 6.1 - Email_HTML_Order_Link_Fixed - Header Tags Controller - Login aLa Amazon - JustOneAttribute - Article Manager - SPPC w/PB - spiders.txt - Dangling Carrot/Olive - Printable Catalog - CCGV(trad) Planned Mods - - > Purchase Without Account - USPS Label - Ultimate SEO Link to comment Share on other sites More sharing options...
aodfan Posted March 22, 2006 Share Posted March 22, 2006 Fantasic! That fixed it, Thanks for your help! If you want want the fancy.php just let me know and Ill email it Quote Link to comment Share on other sites More sharing options...
sn1pereagle Posted March 24, 2006 Share Posted March 24, 2006 QUOTE(invasi0n @ Mar 3 2006, 12:35 AM) Hello, Is there any way to include the payment instructions in the html invoice? The original osc invoice sends at bottom this: if ($payment_class->email_footer) { $email_order .= $payment_class->email_footer . "\n\n"; } } But how to include that in the html invoice? Thanks. I found a way and it works for me. Here is the code i used CODE<?php if (tep_not_null($order->info['payment_method'])) { $this->email_footer; ?> <?php echo $this->email_footer; ?> <?php } ?> Where did you put this code? it doens't wordk for me when i put this code in html_invoice Thanks Quote Link to comment Share on other sites More sharing options...
Frisser Posted March 26, 2006 Share Posted March 26, 2006 has anyone managed to find a working solution to using this mnod with STS??? Yes.. I copied application_top.php and application_bottom.php (in catalog/includes) to application_top2.php and application_bottom2.php. Removed the STS code from these new files. Then I replace in print_my_invoice.php this: require('includes/application_top.php'); to require('includes/application_top2.php'); and <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> to <?php require(DIR_WS_INCLUDES . 'application_bottom2.php'); ?> Quote Link to comment Share on other sites More sharing options...
enmi Posted March 30, 2006 Share Posted March 30, 2006 (edited) When i?m logged in as the testuser i can view the orders att account_history_info.php and on the print_my_invoice.php pages... but when i look at the invoice.php page it does?nt show the text from the language files it displays the variables name, so instead of displaying thanx for shopping... it shows INVOICE_TEXT_THANK_YOU I have swedish language only shop.. and therefor instead of copying the files to /languages/english i copied them to /languages/swedish still preserving the directory structure. Also the e-mails who are sent to the customers are malformed... anyone got any ideas?? Edited March 30, 2006 by enmi Quote Link to comment Share on other sites More sharing options...
Guest Posted March 30, 2006 Share Posted March 30, 2006 I would love to install this contrib, but since I rely on PayPal IPN for my merchant banking payment method, I can't use it. I can't believe that so many people do not offer PayPay IPN. Surely someone has it working with this contrib. Thank you for your helpful replies. Quote Link to comment Share on other sites More sharing options...
invasi0n Posted March 31, 2006 Share Posted March 31, 2006 (edited) Where did you put this code? it doens't wordk for me when i put this code in html_invoice Thanks Sorry for this late answer, but now i have seen your message. Well, i created a new table, the same like Order Commets, and put that code inside. But make sure, your payment module has an email footer. Edited March 31, 2006 by invasi0n Quote Link to comment Share on other sites More sharing options...
invasi0n Posted March 31, 2006 Share Posted March 31, 2006 When i?m logged in as the testuser i can view the orders att account_history_info.php and on the print_my_invoice.php pages... but when i look at the invoice.php page it does?nt show the text from the language files it displays the variables name, so instead of displaying thanx for shopping... it shows INVOICE_TEXT_THANK_YOU I have swedish language only shop.. and therefor instead of copying the files to /languages/english i copied them to /languages/swedish still preserving the directory structure. Also the e-mails who are sent to the customers are malformed... anyone got any ideas?? If you have swedish only, why you don't put there "thank you" in your language? All those <?php echo INVOICE_TEXT_THANK_YOU; ?>, <?php echo STORE_NAME; ?> and so on, are usefull when you use at least 2 language for your shop. What do you mean by malformed emails? The design is not well displayed or the information is wrong? Quote Link to comment Share on other sites More sharing options...
daz_75 Posted March 31, 2006 Share Posted March 31, 2006 HI, I've added this contrib and all seems ok. One thing that's not right though is that on my packingslip, instead of saying ----------Packingslip---------------- in the centre it says -----------osCommerce---------------- Any ideas why? Cheers Daz Quote Link to comment Share on other sites More sharing options...
hawee Posted April 3, 2006 Share Posted April 3, 2006 The contribution Professional Invoice and Packingslip adds an invoicenumber (not orderID) to the invoice, with an autoincrement+1 after you push the print invoice button. is it possible to integrate this in this contribution? I like this contri more because with this one the customer can print his own invoice and gets his invoice E-mailed automatically.( If I understand right) Quote Link to comment Share on other sites More sharing options...
PaulOB Posted April 5, 2006 Share Posted April 5, 2006 I have to work with register globals disabled, and have used the following mod: http://www.oscommerce.com/community/contributions,2097 Do you think this package will work with my version? Thanks, Paul. Quote Link to comment Share on other sites More sharing options...
hawee Posted April 7, 2006 Share Posted April 7, 2006 After a succesfull install i get the following message after the checkout process. This only happens when I set "send HTML or text invoices to customers"to true. Warning: main(): open_basedir restriction in effect. File(/home/YOUR_DOMAIN/public_html/catalog/admin/includes/languages/dutch/invoice.php) is not within the allowed path(s): (/usr/local/psa/home/vhosts/nicedeal.nl/httpdocs:/tmp) in /usr/local/psa/home/vhosts/nicedeal.nl/httpdocs/includes/modules/email_invoice/email_invoice.php on line 30 Warning: main(/home/YOUR_DOMAIN/public_html/catalog/admin/includes/languages/dutch/invoice.php): failed to open stream: Operation not permitted in /usr/local/psa/home/vhosts/nicedeal.nl/httpdocs/includes/modules/email_invoice/email_invoice.php on line 30 Warning: main(): open_basedir restriction in effect. File(/home/YOUR_DOMAIN/public_html/catalog/admin/includes/languages/dutch/invoice.php) is not within the allowed path(s): (/usr/local/psa/home/vhosts/nicedeal.nl/httpdocs:/tmp) in /usr/local/psa/home/vhosts/nicedeal.nl/httpdocs/includes/modules/email_invoice/email_invoice.php on line 30 Warning: main(/home/YOUR_DOMAIN/public_html/catalog/admin/includes/languages/dutch/invoice.php): failed to open stream: Operation not permitted in /usr/local/psa/home/vhosts/nicedeal.nl/httpdocs/includes/modules/email_invoice/email_invoice.php on line 30 Fatal error: main(): Failed opening required '/home/YOUR_DOMAIN/public_html/catalog/admin/includes/languages/dutch/invoice.php' (include_path='.:/usr/local/psa/apache/share/pear') in /usr/local/psa/home/vhosts/nicedeal.nl/httpdocs/includes/modules/email_invoice/email_invoice.php on line 30 Who can help me?? 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.