mypaisa Posted June 1, 2004 Share Posted June 1, 2004 Sorry - I should have looked closer at earlier posts. I downloaded the 5/27 files, so I was looking at posts from after that. Quote Link to comment Share on other sites More sharing options...
♥radders Posted June 1, 2004 Share Posted June 1, 2004 :D Quote Link to comment Share on other sites More sharing options...
talon177 Posted June 3, 2004 Share Posted June 3, 2004 Just wondering if you knew of why i'm getting these numbers without tax calculating? Â Products Model Tax Price (ex) Price (inc) Total (ex) Total (inc) 1 x Die Hard With A Vengeance DVD-DHWV 8.2500 $39.99 $39.99 $39.99 $39.99 Â Subtotal: $39.99 Customer Discount $-2.00 Tax 3.30 Shipping 0.00 Total 41.29 Â The price (inc) and total(inc) aren't including tax calculating for some reason =( Â Thanks Quote Link to comment Share on other sites More sharing options...
gavhot Posted June 29, 2004 Share Posted June 29, 2004 Just a few questions, i am really new to this software but find it great to use, i installed your contribution and managed to play with the template to get it to fit our integrated labels we use. 1. What php command would I use to add a graphic somewhere in the template? 2. Would there be anyway to have some kind of script running using your template so at a given time, say every 2 hours it was to check for orders and print the orders out? 3. How can i add a line at the bottom on the invoice like there is under the company name and a footer there with some comments or contact details 4. Is there anyway to increment the number of the pdf file so it does not keep over writing the same file  Thanks Quote Link to comment Share on other sites More sharing options...
♥radders Posted June 30, 2004 Share Posted June 30, 2004 Hi Talon, It's probably down to the changes I made. ;) I may have reused a variable (possible an array) name. I don't have tax turned on or use any of the settings so I didn't check those things.  Gavhot, I dont know the answers but if want your page to auto-refresh every two hours then you put this html meta tag: <META HTTP-EQUIV=Refresh CONTENT="7200">  between the HEAD tags of your page. Hope that gets you part of the way there. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 2, 2004 Share Posted July 2, 2004 I get these errors when I try to generate a batch order PDF... Â Warning: fopen(includes/modules/batch_print/temp_pdf/batch_orders.pdf): failed to open stream: Permission denied in /hsphere/local/home/myuserid/mysite.com/catalog/admin/batch_print.php on line 268 Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/myuserid/mysite.com/catalog/admin/batch_print.php:268) in /hsphere/local/home/myuserid/mysite.com/catalog/admin/batch_print.php on line 300 Â I have no idea what to do. I looked at these lines and I see nothing that needs changes. Hope someone understands how to get this to work. Â Here are lines 267-271... Â $fname = BATCH_PDF_DIR . BATCH_PDF_FILE; if ($fp = fopen($fname,'w')) { fwrite($fp,$pdf_code); fclose($fp); } else { message_handler('FAILED_TO_OPEN'); } Â and lines 299-305... Â if ($message) { header("Location: " . tep_href_link(BATCH_PRINT_FILE, 'mkey=' . $message)); } else { header("Location: " . tep_href_link(BATCH_PRINT_FILE)); } exit(0); } Â Hope someone can help. I will post the whole file at your request. Â By the way, it has nothing to do with setting chmod for the temp_pdf folder to 777. It is set at 777 already. Â Thanks. Quote Link to comment Share on other sites More sharing options...
mix Posted July 5, 2004 Share Posted July 5, 2004 Hi Looks like a bloody useful module, but...  I've installed everything and when I click on 'batch order center' in Tools, I get the following error:  Fatal error: Failed opening required 'BATCH_PRINT_INCbatch_print_header.php' (include_path='.:/usr/share/pear') in /home/hardware/web/Merchant2/catalog/admin/batch_print.php on line 284  Anyone know what I can do?  Cheers I've the same problem, anyone knows what can I do ? Quote Link to comment Share on other sites More sharing options...
royalfunk Posted July 13, 2004 Share Posted July 13, 2004 First of all...LOVE THIS CONTRIBUTION! Great work guys (and gals). It looks like it took a lot of time and effort. One question I have not been able to answer myself, though, is how to change which button graphic is used as the submit image for the form on admin/batch_print.php. If anyone could let me know I would greatly appreciate it, as I would prefer to use a different button. Thanks!!!!!! Â -Aaron Quote Link to comment Share on other sites More sharing options...
superman123 Posted July 29, 2004 Share Posted July 29, 2004 Is there a way to edit the way the invoice looks? i want to put an agreement and a few other comments on the bottom of every invoice for the customers in case they want to return or do wutever. Quote Link to comment Share on other sites More sharing options...
talon177 Posted August 19, 2004 Share Posted August 19, 2004 Hi Talon, It's probably down to the changes I made. ;) I may have reused a variable (possible an array) name. I don't have tax turned on or use any of the settings so I didn't check those things. Actually I think it's standard osc bug error, since admin/invoice.php or admin/orders.php doesn't show it correctly either. Quote Link to comment Share on other sites More sharing options...
ukgoods Posted September 21, 2004 Share Posted September 21, 2004 Does anyone know how to sort the product rows by model number in the batch print contribution? Â It would make it much easier for my pickers if the items were sorted by model numbers. Â Thanks, Â Donna Gordon UKGoods.com Quote Link to comment Share on other sites More sharing options...
yakseller Posted October 27, 2004 Share Posted October 27, 2004 Does anyone know how to sort the product rows by model number in the batch print contribution? It would make it much easier for my pickers if the items were sorted by model numbers.  Thanks,  Donna Gordon UKGoods.com <{POST_SNAPBACK}>  You could try changing the $orders_products_query in admin/classes/order.php so that you sort by products_model every time an order is retrieved. To do this, just put "ORDER BY products_model" at the end of the query. So, it would read:  $orders_products_query = tep_db_query("select orders_products_id, products_name, products_model, products_price, products_tax, products_quantity, final_price from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$order_id . "' order by products_model");  If you are going to mess with this, make sure you back up the file first. Also keep in mind, this will effect more then just this contribution. Quote Link to comment Share on other sites More sharing options...
jpldisplays Posted October 30, 2004 Share Posted October 30, 2004 Hi there, Â I was wondering if anyone is having any problems with this contribution sending emails?? Â It all seems to work fine except for the email notifications. Â What method of sending mail is used on the sites that have installed this contribution? Â we normally used sendmail but I have installed the SMTP Contribution as well, if I set it to sendmail in admin then this contribution does not send email notifications at all but if I switch it to SMTP then it works but I have found with the SMTP Contribution it will only send one message at a time so if you do somthing in a batch such as this or even send a newsletter to all subscribed customers for instance then it produces an error so I can't use that. Â Are others having any problems with the email notifications?? Â Â Cheers!! Quote Link to comment Share on other sites More sharing options...
blurb Posted December 2, 2004 Share Posted December 2, 2004 Have started a new thread for a new version of batch order center that im working on. Check out http://www.oscommerce.com/forums/index.php?showtopic=124133&hl= Â I have called it Batch Print Center as my new version allows printing of various types of PDF's not just the invoice type. Â cheers shaun Quote Link to comment Share on other sites More sharing options...
Guest Posted December 8, 2004 Share Posted December 8, 2004 Has anyone fixed the PDF cropping??? and if so please post how you did it. Â Erik Quote Link to comment Share on other sites More sharing options...
♥radders Posted December 8, 2004 Share Posted December 8, 2004 You can get the line to wrap instead of being cropped. $pdf->addTextWrap It isn't totally straightforward to use but you can see an example in batch_print.php Alternatively using a smaller font might just do it.  Once you get Blurb's forthcoming contribution you will find it easier to make layout changes. For instance I have created an integrated packing slip/invoice with built-in sticky labels at the top using the preview version of this contribution. Quote Link to comment Share on other sites More sharing options...
Guest Posted December 8, 2004 Share Posted December 8, 2004 (edited) You can get the line to wrap instead of being cropped. $pdf->addTextWrap It isn't totally straightforward to use but you can see an example in batch_print.php Alternatively using a smaller font might just do it. Â Once you get Blurb's forthcoming contribution you will find it easier to make layout changes. For instance I have created an integrated packing slip/invoice with built-in sticky labels at the top using the preview version of this contribution. <{POST_SNAPBACK}> Â Â How would text wrapping help the last ten lines being cropped?? It is cropping the bottom of products. I have tried changing fonts it does not work. Edited December 8, 2004 by Ehydo Quote Link to comment Share on other sites More sharing options...
♥radders Posted December 8, 2004 Share Posted December 8, 2004 (edited) I didn't know that the last ten lines were being cropped.! I've been using this contribution for a year now without coming across that problem.  Perhaps you could explain what you mean in a bit more detail. Thanks. Edited December 8, 2004 by radders Quote Link to comment Share on other sites More sharing options...
Guest Posted December 8, 2004 Share Posted December 8, 2004 I do not know how to be much more specific. When I look at the pdf on large orders that should take 2 or more pdf pages the Products section cuts off at the end of the first page. It never continues to another page. Â I have plenty of examples if you like. Quote Link to comment Share on other sites More sharing options...
♥radders Posted December 8, 2004 Share Posted December 8, 2004 Ah, now I understand what the problem is. A picture is worth a thousand words.  You are asking why you can only fit around 30 items on the invoice. If there are more than that then you would like it to go on to another page.  Seems like a very sensible idea to me. So far I haven't sold more than this number of items in one order so have never come across the issue.  Let's put this on the list of suggestions for when new templates are being developed. Actually I wouldn't have thought it would be that hard to do. Not high on my own list of priorities for obvious reasons but it seems to make sense to gereralize the templates if it is reasonably straightforward to do. Quote Link to comment Share on other sites More sharing options...
Guest Posted December 8, 2004 Share Posted December 8, 2004 Ah, now I understand what the problem is. A picture is worth a thousand words. You are asking why you can only fit around 30 items on the invoice. If there are more than that then you would like it to go on to another page.  Seems like a very sensible idea to me. So far I haven't sold more than this number of items in one order so have never come across the issue.  Let's put this on the list of suggestions for when new templates are being developed. Actually I wouldn't have thought it would be that hard to do. Not high on my own list of priorities for obvious reasons but it seems to make sense to gereralize the templates if it is reasonably straightforward to do. <{POST_SNAPBACK}>  I guess that means that you do not have an answer.   I will wait. Quote Link to comment Share on other sites More sharing options...
♥radders Posted December 8, 2004 Share Posted December 8, 2004 Well not a particularly elegant solution but this should work:  Find this line in your template or admin/batch_print.php: $pos = ($pos-PRODUCT_TABLE_ROW_HEIGHT) + PRODUCT_TABLE_BOTTOM_MARGIN; Immediately after it add this:  //page feed if ($pos <= 30) { $pdf->ezNewPage(); $pos =800; } // end page feed Quote Link to comment Share on other sites More sharing options...
Guest Posted December 8, 2004 Share Posted December 8, 2004 Well not a particularly elegant solution but this should work:Â Find this line in your template or admin/batch_print.php: $pos = ($pos-PRODUCT_TABLE_ROW_HEIGHT) + PRODUCT_TABLE_BOTTOM_MARGIN; Immediately after it add this: Â //page feed if ($pos <= 30) { $pdf->ezNewPage(); $pos =800; } // end page feed <{POST_SNAPBACK}> Â It did nothing for me. I even tried changing if ($pos <= 30) { to 20, 10, 15, -15 and nothing happened. Quote Link to comment Share on other sites More sharing options...
Guest Posted December 8, 2004 Share Posted December 8, 2004 I also tried changing $pos =800 to 200, 100 and 50 Quote Link to comment Share on other sites More sharing options...
♥radders Posted December 9, 2004 Share Posted December 9, 2004 There are several instances of the code I gave you. You need the occurance of that code in the particular section that is causing the problem. The line number will probably be in the vicinity of 150.  First find or ($i = 0, $n = sizeof($order->products); $i < $n; $i++) { Then go down until you reach the line I gave you. Works for me!  The meaning of the '30' and '800' is this: 0 is the bottom of the page, so 30 wioll give you a margin from the bottom. 800 is near the top of the page (for an A4 sheet).  hth 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.