Guest Posted December 9, 2004 Share Posted December 9, 2004 IT worked. I had to edit 800 to read 780. Thank you for all of you help. Erik Quote Link to comment Share on other sites More sharing options...
AllanH Posted December 17, 2004 Share Posted December 17, 2004 (edited) I installed this wonderful contribution the other day and all seems to work well (though haven't tested thoroughly). The one thing that broke was that now when I go to edit a customer, I get this at the top of the page: Warning: reset(): Passed variable is not an array or object in /home/freedom/public_html/shredshop/backend/includes/classes/object_info.php on line 17 Warning: Variable passed to each() is not an array or object in /home/freedom/public_html/shredshop/backend/includes/classes/object_info.php on line 18 I'm working on fixing it, but was hoping someone may be able to provide a short cut for me. Thanks :) Edited December 17, 2004 by AllanH Quote Link to comment Share on other sites More sharing options...
stalkert Posted December 28, 2004 Share Posted December 28, 2004 Much of respect!! Very nice contribute. This is exactly what I need. One question. why is that my invoice is looking weird? The lines don't fit Quote Link to comment Share on other sites More sharing options...
♥radders Posted December 28, 2004 Share Posted December 28, 2004 (edited) Sometimes people use different fontsize/line spacing or pagesize. These things have an impact on the layout. You will find that the boxes are at fixed positions on the page but much of the text is just allowed to flow from top to bottom. There is a slight conflict between those two concepts. My suggestion would be to start the text a little lower down the page (or chnage the box co-ordinates to make them lower. The grid provided with the templates may help in this regard. It seems like a pretty simple adjustment in this case though. Something like $y-=10; might do it but probably not. Easier perhaps to fix the rounded rectangles. $pdf->roundedRectangle(x,y,w,h,10,$f=0); Try increasing the 'y' value of the rounded rectangles a little. Edited December 28, 2004 by radders Quote Link to comment Share on other sites More sharing options...
bobg7 Posted December 30, 2004 Share Posted December 30, 2004 Great contribution :thumbsup: , it will come in handy as the business grows. I was wondering if this can be done, I will be needing to create one-up labels for the retail side of my business. The labels need to have this information: Item Name (Big Blue Widget) Item Number (12345) Item Price ($29.99) Website Address So the label would look something like this: Big Blue Widget #12345 $29.99 ea. http://www.anystore.com And be able to print the number of labels I need, if I have 12 of the Big Blue Widgets, I can tell it to print only 12. I'm not sure where or what would need to be done to do this, but I think it would make a great addition to the contribution. Thanks in advance, Bob G. Quote Installed Contributions: CCGV, Close Popup, Dynamic Meta Tags, Easy Populate, Froogle Data Feeder, Google Position, Infobox Header Entire Row, Live Support for OSC, PayPal Seal with CC images, Report_m Sales, Shop by Price Revised, SQL Updater, Who's Online Enhancement, Footer, GNA EP Assistant and still going. Link to comment Share on other sites More sharing options...
jallajalla Posted January 11, 2005 Share Posted January 11, 2005 When i use norwegian language in Admin i got an error. When I open the PDF file (by clicking the link in admin) the message says "Unrecognized object name". Any idea whats wrong? Quote Link to comment Share on other sites More sharing options...
jallajalla Posted January 27, 2005 Share Posted January 27, 2005 Anyone using this contribution in other language than english? Is it only me that get "Unrecognized object name" when I use other languages than english? i've searched the forum and it seams that this is a problem related to adobe (pdf) reader?? Quote Link to comment Share on other sites More sharing options...
data2700 Posted February 5, 2005 Share Posted February 5, 2005 Great contribution :thumbsup: , it will come in handy as the business grows. I was wondering if this can be done, I will be needing to create one-up labels for the retail side of my business. The labels need to have this information: Item Name (Big Blue Widget) Item Number (12345) Item Price ($29.99) Website Address So the label would look something like this: Big Blue Widget #12345 $29.99 ea. http://www.anystore.com And be able to print the number of labels I need, if I have 12 of the Big Blue Widgets, I can tell it to print only 12. I'm not sure where or what would need to be done to do this, but I think it would make a great addition to the contribution. Thanks in advance, Bob G. <{POST_SNAPBACK}> I am also hoping to have this type of functionality... can it be done to help out those of us that have a need to create product labeling? I've also brought this up in a thread for the Batch Print Center, which is somewhat based on this contribution and the sticky labels contribution. So far we haven't been able to make any progress, so if anyone can help it would be greatly appreciated! Here is the link to that disucssion. http://www.oscommerce.com/forums/index.php?sho...view=getnewpost Quote Link to comment Share on other sites More sharing options...
altDev Posted February 14, 2005 Share Posted February 14, 2005 I have added the CVV mod to my cart and would like to see the CVV in this contribution, any done this or know how it can be done? Thanx! Jaymz Quote James Scheller Link to comment Share on other sites More sharing options...
♥radders Posted February 14, 2005 Share Posted February 14, 2005 What is a CVV please? Quote Link to comment Share on other sites More sharing options...
altDev Posted February 15, 2005 Share Posted February 15, 2005 CVV is the little 3 or 4 digit code on the back of credit cards. Here is the contribution, http://www.oscommerce.com/community/contri...search,cvv+1.24 , which is now sometimes being required. Its a good security benifit if someone trys using a CC number that stolen, and they dont have the card.. Jaymz Quote James Scheller Link to comment Share on other sites More sharing options...
♥radders Posted February 16, 2005 Share Posted February 16, 2005 OK I understand, thanks. It is what is commonly referred to as the security code. Not sure how it related to this contribution but then I use a gateway so don't use one of those CVVs. Quote Link to comment Share on other sites More sharing options...
altDev Posted February 17, 2005 Share Posted February 17, 2005 When I batch my orders, I send them to my retail store for my employee to start pulling orders, and when she charges their credit card it asks for the security code (CVV) and she then has to go on to the web to get them, just an extra step for her. This would make it easier for her if it was with the CC#, exp date. I can get "CVV#" to print on the batch report but it doesn't call out to get the CVV# from the order.. Quote James Scheller Link to comment Share on other sites More sharing options...
Guest Posted March 1, 2005 Share Posted March 1, 2005 Great contrib!! Wondering if someone could expand a bit more regarding post#20 of this topic on page one. It refers to correcting an issue with the " country " not showing up in the .pdf output file. Their seems to be sample code for a simple cut-and-paste operation that might fix the problem. I'm not having any luck finding the pre-existing code meant to be replaced. Any help is greatly appreciated. I also am curious as to how the CVV number can be printed. I realize their are different cvv add-ons, since it is one field maybe a generic fix is possible only requiring the downloadee to change the table and field names? I really don't know enough of what I speak so ...I'm finished. Thanks Jason Quote Link to comment Share on other sites More sharing options...
jallajalla Posted March 1, 2005 Share Posted March 1, 2005 I still have problem to use this contribution in other languages than english. Is anyone using this in other language? Quote Link to comment Share on other sites More sharing options...
♥radders Posted March 1, 2005 Share Posted March 1, 2005 Wondering if someone could expand a bit more regarding post#20 of this topic on page one. I fixed this in an update to Batch Print Center which is the modular version of this contribution. Quote Link to comment Share on other sites More sharing options...
outdoor Posted March 2, 2005 Share Posted March 2, 2005 I need to change the font-family to 'arial'. Does anyone know how to do this? <{POST_SNAPBACK}> O.K. - its a bit an older post, but I had the same problem. I fixed it with the following steps: -In your template (as example Invoice.php) serch for the line: $pdf->selectFont(BATCH_PDF_DIR . 'Helvetica.afm'); $pdf->setFontFamily(BATCH_PDF_DIR . 'Helvetica.afm'); change them to: $pdf->selectFont(BATCH_PDF_DIR . 'arial.afm'); $pdf->setFontFamily(BATCH_PDF_DIR . 'arial.afm'); Ensure, that arial.afm is located in the Folder temp_pdf My problem was ,that I had arial only as a ttf (trueType) Font. On Sourceforge.net you will find a converter called "ttf2pt1". -Download and install it on your Box You can generate arial.afm with the command ttf2pt1 -a arial.ttf arial Thats it outdoor Quote Link to comment Share on other sites More sharing options...
rotaour Posted April 12, 2005 Share Posted April 12, 2005 I am trying to integrate the Clear Credit Card info contrib into batch_print_center and was hoping someone could help me out. I think its an easy tweak but dont really have the knowledge to implement it with the start and end dates. I've added this to batch_print_body.php - <tr class="dataTableRow"> <td class="dataTableContent">Delete Credit Card info?</td> <td width="50%"><?php echo tep_draw_checkbox_field('clear_CC', '', false); ?></td> </tr> At the bottom of batch_print.php I've added this - // Clear Credit Card if(($HTTP_POST_VARS['clear_CC'] == 'on') && ($invoicenumbers != '')) { tep_db_query("update " . TABLE_ORDERS . " set cc_number = '' where orders_id in (" . tep_db_input($invoicenumbers) . ") "); } elseif(($HTTP_POST_VARS['clear_CC'] == 'on') && ($invoicenumbers == '')) { tep_db_query("update " . TABLE_ORDERS . " set cc_number = '' where date_purchased between '" . tep_db_input($startdate) . "' and '" . tep_db_input($enddate) . "23:59:59' "); } // I think the first condition is alright, but I'm sure the elseif conditional is wrong as it doesnt specify where date_purchased is(ie, TABLE_ORDERS_STATUS_HISTORY) and I'm not sure how to tell it to look in TABLE_ORDERS_STATUS_HISTORY for it. Also maybe the elseif should do this instead? elseif(($HTTP_POST_VARS['clear_CC'] == 'on') && (isset(tep_db_input($startdate)) && (isset(tep_db_input($enddate)) )) { tep_db_query("update " . TABLE_ORDERS . " set cc_number = '' where date_purchased between '" . tep_db_input($startdate) . "' and '" . tep_db_input($enddate) . "23:59:59' "); } Any help or suggestions would be greatly appreciated. Thanks Quote Matt Mika Installed Contributions: Multi-Stores, QTPro, CCGV(trad), Batch Print, EasyPopulate, Simple Manual Order Entry, Encrypting Credit Card Via Mcrypt, UPSXML, Down for Maintenance, On The Fly GD Thumbs, SPPC, SPPC Hide, and various personal tweaks Link to comment Share on other sites More sharing options...
rotaour Posted April 13, 2005 Share Posted April 13, 2005 OK, this is what I've got it down to. First conditional works with a range(ie. 2-9) and a list(ie. 2,3,4,5), but the start/end date UPDATE isnt working yet. I dont believe the time is getting on the end of the enddate properly(syntax?). Any ideas? Tips? Thanks // Clear Credit Card if(($HTTP_POST_VARS['clear_CC'] == 'on') && ($invoicenumbers != '')) { tep_db_query("update " . TABLE_ORDERS . " set cc_number = '' where orders_id in (" . tep_db_input($invoicenumbers) . ") "); } elseif (($HTTP_POST_VARS['clear_CC'] == 'on') && (isset($HTTP_POST_VARS['startdate'])) && (!isset($HTTP_POST_VARS['enddate']))) { tep_db_query("update " . TABLE_ORDERS . " set cc_number = '' where date_purchased between '" . $HTTP_POST_VARS['startdate'] . "' and '" . $HTTP_POST_VARS['enddate'] . "23:59:59"); } // Quote Matt Mika Installed Contributions: Multi-Stores, QTPro, CCGV(trad), Batch Print, EasyPopulate, Simple Manual Order Entry, Encrypting Credit Card Via Mcrypt, UPSXML, Down for Maintenance, On The Fly GD Thumbs, SPPC, SPPC Hide, and various personal tweaks Link to comment Share on other sites More sharing options...
rotaour Posted April 15, 2005 Share Posted April 15, 2005 OK, I got it working. You can now tick a checkbox on the Batch Print Center page to delete Credit Card #'s from the DB. I've added it as a contribution. http://www.oscommerce.com/community/contributions,2720 Quote Matt Mika Installed Contributions: Multi-Stores, QTPro, CCGV(trad), Batch Print, EasyPopulate, Simple Manual Order Entry, Encrypting Credit Card Via Mcrypt, UPSXML, Down for Maintenance, On The Fly GD Thumbs, SPPC, SPPC Hide, and various personal tweaks Link to comment Share on other sites More sharing options...
saborchulo Posted May 6, 2005 Share Posted May 6, 2005 Wow how this contrib has grown, back in the day when I created this mod I had no idea how much it would grow, I was so busy with my job I couldn't give it the support it needed. Radders what an amazing job you have done with this contrib, much props. Much props to the people that converted it to the new release (well newer than MS1 anyways). Not much was available at the time to create PDFs, but of course now there are more classes to develop and output PDF files. Can't wait to take a look at all the new code and see how it has progressed. :thumbsup: Quote Link to comment Share on other sites More sharing options...
♥radders Posted May 9, 2005 Share Posted May 9, 2005 I have to admit that I did very little apart from talk about it and add a template or two. The author of Batch Print Center did all the work! Quote Link to comment Share on other sites More sharing options...
shahed Posted June 15, 2005 Share Posted June 15, 2005 we have lots of attribute on our invoices, I'm trying to make row 'PRODUCT_TABLE_ROW_HEIGHT' to 15 so my text fit properly, now half of my products information is coming. However on 2nd page order comments is coming. what code make information to go to 2nd page, it must be something under attribute and product code I have enter, can someone help me? Quote Link to comment Share on other sites More sharing options...
♥radders Posted June 15, 2005 Share Posted June 15, 2005 Not sure in your particular case. In the integrated packing slip template I had added a crude bit of code after the orders and before the comments which checked if there was room on the page to print the comments. If there wasn't then it started a new page and set the position to the top of the A4 page. //page feed if ($pos <= 30) { $pdf->ezNewPage(); $pos =780; } Quote Link to comment Share on other sites More sharing options...
shahed Posted June 16, 2005 Share Posted June 16, 2005 Not sure in your particular case. In the integrated packing slip template I had added a crude bit of code after the orders and before the comments which checked if there was room on the page to print the comments. If there wasn't then it started a new page and set the position to the top of the A4 page. //page feed if ($pos <= 30) { $pdf->ezNewPage(); $pos =780; } <{POST_SNAPBACK}> wow thanks, it worked. Now on each attribute we have a comment field and its cutting off, how can I fix it? 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.