Guest cinnabar Posted November 30, 2005 Share Posted November 30, 2005 Hope someone can help, (running CC3 Ver.3.0.6) I would like to add my company logo to the 'pay by cheque order form' - I've added the code (shown in red below as cut and paste from frontpage and tweaked the filename) to the orderform.tpl file and a blank box with no image is shown. I am gd2 enabled, i'm sure i've got the filename and location correct, not sure why image is not showing. I'm not HTML etc literate, more try it and see what happens. This is what i've done......... </style> </head> <body onload="window.print();"> <div style="margin: auto; width: 550px; border: 2px solid #cccccc; background-color:#FFFFFF;"> <table border="0" width="550" align="center" cellpadding="4" cellspacing="0"> <tr> <!--<td colspan="2" align="left" valign="top" class="copyText"><span style="font-weight: bold;">{VAL_STORE_NAME}</span> <br /> {VAL_STORE_URL}</td>--> </tr> <img border="0" src="images/cinnabar1.jpg" width="160" height="127" align="right" hspace="15" vhspace="15" style="float: right"> <tr> <td align="left" valign="top" class="copyText"> <strong>{LANG_INVOICE_TO}</strong> <div style="padding: 10px;"> {VAL_INVOICE_NAME}<br/> {VAL_INVOICE_ADD1}<br/> {VAL_INVOICE_ADD2}<br/> {VAL_INVOICE_TOWN}, {VAL_INVOICE_STATE}<br/> {VAL_INVOICE_POSTCODE}<br/> {VAL_INVOICE_COUNTRY}</div> </td> etc, etc....... P.S. Where in the files is the 'pay by check' wording i'd like to change it to 'Pay by cheque' Thanx in advance Gary Quote Link to comment Share on other sites More sharing options...
Guest Posted December 1, 2005 Share Posted December 1, 2005 your image path is incorrect unless you have the image in your images folder in your print_order_form folder try using the full url ie http://www.yoursite.com/images/cinnabar1.jpg Quote Link to comment Share on other sites More sharing options...
Guest cinnabar Posted December 1, 2005 Share Posted December 1, 2005 Doh! what an idiot I am, proves a little knowledge is a dangerous thing! Thanks for your help. Much appreciated. Gary Quote Link to comment Share on other sites More sharing options...
Guest Posted December 1, 2005 Share Posted December 1, 2005 No probs :lol: Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted December 1, 2005 Share Posted December 1, 2005 Thanks for the idea, i added it to my disk :lol: Quote Link to comment Share on other sites More sharing options...
Guest cinnabar Posted December 1, 2005 Share Posted December 1, 2005 This is what it now looks like. Regards Quote Link to comment Share on other sites More sharing options...
Guest Posted December 1, 2005 Share Posted December 1, 2005 I just checked it out...that is pretty cool. I guess I will have to do it too... btw thats what makes these forums work..new idea's and sharing them...cool huh? thanks alot for the great addition... Quote Link to comment Share on other sites More sharing options...
Guest Mysiteonline Posted December 2, 2005 Share Posted December 2, 2005 Great idea, i'll be adding this to my order forms. Will this also add the logo to the packing slips? Quote Link to comment Share on other sites More sharing options...
Guest cinnabar Posted December 2, 2005 Share Posted December 2, 2005 No they are two different forms. Packing label in V3.0.6 is admin/orders/print.php regards Gary B) Quote Link to comment Share on other sites More sharing options...
Guest Mysiteonline Posted December 2, 2005 Share Posted December 2, 2005 I've now added the logo to the packing slip / invoice. You use the same code as mentioned at the start. Quote Link to comment Share on other sites More sharing options...
Guest cinnabar Posted December 2, 2005 Share Posted December 2, 2005 I've updated the images in the postal order form to include return buttons back to my site, and to fill the 'dead' white space next to the logo. It now looks like this..... The script looks like this..... <!-- BEGIN: order_form --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>{VAL_STORE_URL}</title> <meta http-equiv="Content-Type" content="text/html; charset={VAL_ISO}" /> <style type="text/css"> <!-- .copyText {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;} .txtCopyright, a.txtCopyright {color:#FFFFFF; font-size: 6px;} --> </style> </head> <body onload="window.print();"> <div style="margin: auto; width: 550px; border: 2px solid #cccccc; background-color:#FFFFFF;"> <table border="0" width="550" align="center" cellpadding="4" cellspacing="0"> <!--<tr> <td colspan="2" align="left" valign="top" class="copyText"><span style="font-weight: bold;">{VAL_STORE_NAME}</span> <br /> {VAL_STORE_URL}</td> </tr>--> <tr> <br> <img border="0" src="http://mysite/images/logo.jpg" width="160" height="127" align="right" hspace="15" vhspace="15" style="float:right"> <p align="center"><font face="Arial" color="#727272" size="1.5"><br> <b> Please Print Form<br> (Auto prompt or 'right click')</b><br> </font></p> <p align="center"> <a href="http://mysite/shop"> <img border="0" src="http://www.mysite/images/button_shop.jpg" width="90" height="18"></a><br> <br> <a href="http://www.mysite/homepage"> <img border="0" src="http://www.mysite/images/button_homepage.jpg" width="128" height="18"></a></p> <p align="center"><font face="Arial" color="#727272" size="2"><br> <b>This is your receipt - Not a tax invoice.<br> Include your Order ID in any correspondance to us.</b> </font></p></tr> <tr> <td align="left" valign="top" class="copyText"> <strong>{LANG_INVOICE_TO}</strong> <div style="padding: 10px;"> {VAL_INVOICE_NAME}<br/> {VAL_INVOICE_ADD1}<br/> {VAL_INVOICE_ADD2}<br/> {VAL_INVOICE_TOWN}, {VAL_INVOICE_STATE}<br/> {VAL_INVOICE_POSTCODE}<br/> {VAL_INVOICE_COUNTRY}</div> </td> Hope this is of some use. I'm not html or css literate, it's a bit belt and braces but I hope it works for you.... Happy form amending... Gary Quote Link to comment Share on other sites More sharing options...
Guest global777 Posted January 5, 2006 Share Posted January 5, 2006 Can someone tell me where the "orderform.tpl" file is located? Thank you!! J.D. Quote Link to comment Share on other sites More sharing options...
Guest Posted January 5, 2006 Share Posted January 5, 2006 In the styletemplates folder of your chosen skin Quote Link to comment Share on other sites More sharing options...
Guest global777 Posted January 5, 2006 Share Posted January 5, 2006 Actually I found it in: modules/gateway/Print_Order_Form Quote Link to comment Share on other sites More sharing options...
Guest pagoda Posted January 6, 2006 Share Posted January 6, 2006 where would you put the code to put the logo for the packing slip/invoice? Quote Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2006 Share Posted January 6, 2006 Just look at the code in red text and you will find your answer Quote Link to comment Share on other sites More sharing options...
Guest Kelvin Posted September 23, 2006 Share Posted September 23, 2006 Just look at the code in red text and you will find your answer Hi, the example is for the "orderForm.tpl" but how about the packing list "print.php"? Where do I put the logo? Thanks. 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.